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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52fd6b19d4debc629d3f93d1633d1fed4071f448c398ff9ccdcc18de5390385c |
|
MD5 | 3ab1ac202742434d2c01f17a44a3f007 |
|
BLAKE2b-256 | 1e2360141719600dd22e82e500d68d7a7157d0dd26a18c9edb87788744e9c21b |
Close
Hashes for opentelemetry_instrumentation_haystack-0.33.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85ef8dd553980e5f543258bdff585b0f2230e2d076ab2025a985d3bbea80c14 |
|
MD5 | 81a4a13c8e25b995f9fdcb074a01d47b |
|
BLAKE2b-256 | 3ea516affbfe66cdc7687d2e5cd506787b7460dfbcbc2cbeaeda3da02f6b6cce |