Skip to main content

OpenTelemetry LlamaIndex instrumentation

Project description

OpenTelemetry LlamaIndex Instrumentation

This library allows tracing complete LLM applications built with LlamaIndex.

Installation

pip install opentelemetry-instrumentation-llamaindex

Example usage

from opentelemetry.instrumentation.llamaindex import LlamaIndexInstrumentor

LlamaIndexInstrumentor().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_llamaindex-0.33.7.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.7.tar.gz
Algorithm Hash digest
SHA256 fd70552b3f87b10ae5b1dda332b29a189b83c9ea152f2b1633551c3cf4ce196f
MD5 cb7ddd00b62b0710867cef16d4a90092
BLAKE2b-256 b54eb4814077c8018dac4c3e1740aebd19910e86007a488d3b7e8a4b179dd74c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_llamaindex-0.33.7.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

Details for the file opentelemetry_instrumentation_llamaindex-0.33.7-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e19a4f9f4a3b41966da1f8c70fc10389512f27b511efb7ac10c65b9bd3914674
MD5 45f6e103c3b42779cff4cce22bf7648d
BLAKE2b-256 7d4ba519960d7c65b525cf9d4a54ba7a2f5f10477ee636b3eeb08331a7ecc36a

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_llamaindex-0.33.7-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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