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
File details
Details for the file opentelemetry_instrumentation_haystack-0.33.12.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_haystack-0.33.12.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d45df14aff1f2321066e55ecce632653d67c36249d3eaccbefa189f0daaba05 |
|
MD5 | a5accad3faec2b9c05fa1bb19eebb123 |
|
BLAKE2b-256 | 9c06067e4b2db2bc29d0a7e3a6cc8676d5f1971b0ecbaf7e5fa0c1e478e092af |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_haystack-0.33.12.tar.gz
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_haystack-0.33.12.tar.gz
- Subject digest:
3d45df14aff1f2321066e55ecce632653d67c36249d3eaccbefa189f0daaba05
- Sigstore transparency entry: 148749168
- Sigstore integration time:
- Predicate type:
File details
Details for the file opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2a3041a58e1027d8728e1a24430f7b01e8c27e9c04c22fa4204c590b12a95f6 |
|
MD5 | 31faffd8a2b73b428bf5f8ca495bceaf |
|
BLAKE2b-256 | dcbab8872dce7eb67bd6589d4cccfc97554851dad719067b24c7697a5ffef69a |
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl
:
Publisher:
release.yml
on traceloop/openllmetry
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl
- Subject digest:
d2a3041a58e1027d8728e1a24430f7b01e8c27e9c04c22fa4204c590b12a95f6
- Sigstore transparency entry: 148749210
- Sigstore integration time:
- Predicate type: