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
Close
Hashes for opentelemetry_instrumentation_haystack-0.33.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a229bee0b516721e88d2ee985325ac8b5f2d4ea7860e77818c7bf7979df3902 |
|
MD5 | 15e29c6c1e13a96e3e040c5c16522375 |
|
BLAKE2b-256 | 7671470ccbab2c7de142dbce5463bd7632cf02c4c5c6110d43fc7bb727e280fe |
Close
Hashes for opentelemetry_instrumentation_haystack-0.33.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45dcd6dbdeaf783da38d7a6228e1d511f447450fd7e586d40ba17a31c95da9a0 |
|
MD5 | 06b3dc6106b0539d75652c319821f26d |
|
BLAKE2b-256 | e059599c9805d1f7b52d9cf263be20d5ce6efecdbef7555377e5d6721bf2942c |