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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.17.4.tar.gz
Algorithm Hash digest
SHA256 a077edd6db35b56da31ec6b87da84a9781e2efcf3a80563d892bd87c3666b79a
MD5 7519bcab29767d2c1115777e299669bf
BLAKE2b-256 5600921e1cb6648266122d1eec66d284a251d757781758ceb1158cd01fbf8a01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.17.4-py3-none-any.whl
Algorithm Hash digest
SHA256 91fa6bdd80d02f4fdd28b585b01ce253502628b3d5feaea9a60da08e2f67ed5d
MD5 b5c3ced37c2c9909726bdc4e3b37b4e3
BLAKE2b-256 0a1320d22cc7b9d8372abea3ceadaa90a3389f84499dff6d788006e24338e6aa

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