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.15.9.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.15.9.tar.gz
Algorithm Hash digest
SHA256 93832202e786af3765f36826faef2013e9515e0a45814a3bd644732e1527e34b
MD5 de72489f5ced4e7ab0bff43f31d7ec00
BLAKE2b-256 9304ef3118d185b698172ccf844720c38cd0da06e29d2365bdd8479adf1a8e55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.15.9-py3-none-any.whl
Algorithm Hash digest
SHA256 100a92b51ab31c2d85c7f40c659acab3fceb4a2ddec6b491c6290ef72b53e0c8
MD5 eeb8bcc9cf41f31d0c94868431abf615
BLAKE2b-256 59404ee425bfa5c2f27452fa782959dbae92fdcdea189e9a90b24a6f65fe3967

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