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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.40.14.tar.gz
Algorithm Hash digest
SHA256 e49be73ccb2302ebace9a28014ab20dbcaec6d00893358de54b9054202596f9b
MD5 f53517903f5109a2ee4ba282a537a574
BLAKE2b-256 fb951551569b41f22cbd0131bd9fb0770c1581e14d159b14cb45a0a97eec951d

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_haystack-0.40.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b11c6e57c0c66dc9154f7c8328c5018501f268224c53307c0518a6e407d91cae
MD5 496edcd14ddcf379049b3f8a5ae12cdd
BLAKE2b-256 c4d1c8fe2d6f67a4a56888d4376a5181af03c938a53f9d7fe62d213a25d5ff5c

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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