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

File details

Details for the file opentelemetry_instrumentation_haystack-0.33.12.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.33.12.tar.gz
Algorithm Hash digest
SHA256 3d45df14aff1f2321066e55ecce632653d67c36249d3eaccbefa189f0daaba05
MD5 a5accad3faec2b9c05fa1bb19eebb123
BLAKE2b-256 9c06067e4b2db2bc29d0a7e3a6cc8676d5f1971b0ecbaf7e5fa0c1e478e092af

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_haystack-0.33.12.tar.gz:

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • 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
    • Transparency log index: 148749168
    • Transparency log integration time:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a3041a58e1027d8728e1a24430f7b01e8c27e9c04c22fa4204c590b12a95f6
MD5 31faffd8a2b73b428bf5f8ca495bceaf
BLAKE2b-256 dcbab8872dce7eb67bd6589d4cccfc97554851dad719067b24c7697a5ffef69a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_haystack-0.33.12-py3-none-any.whl:

Publisher: GitHub
  • Repository: traceloop/openllmetry
  • Workflow: release.yml
Attestations:
  • 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
    • Transparency log index: 148749210
    • Transparency log integration time:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page