Skip to main content

OpenTelemetry Haystack instrumentation

Project description

OpenTelemetry Haystack Instrumentation

This library allows tracing complete LLM applications built with Haystack.

Installation

pip install opentelemetry-instrumentation-haystack

Example usage

from opentelemetry.instrumentation.haystack import HaystackInstrumentor

HaystackInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_haystack-0.14.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.14.1.tar.gz
Algorithm Hash digest
SHA256 47844c977398611886977635025841edb922a5def781cf4a53911eeda67a525b
MD5 4924f309a02e6c69ff3cd416a537d4bd
BLAKE2b-256 4d979b4e10803c9f151a3d2136a00e8f4bc66c712fd1375c2fe5898e1489cc2e

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_haystack-0.14.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d291273f3c87390078af134425bc85f034198ee33bef2058ce0d6040390d6f2
MD5 6803fb9805985269e49fd475f9d39264
BLAKE2b-256 b9127a456f2032be1243d030d07c38a59eb7dafe39cad9e116da94ba5f82f842

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page