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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.40.14.tar.gz
Algorithm Hash digest
SHA256 9916136126cd59c8360b189b022af6337f3ed091dccbf11317b045c452e5185b
MD5 f0ff843177664c8a5899258a30df32e0
BLAKE2b-256 f8be317b3fc79672ae5bf74d87108f0f3235fa98a7af30e36a84a400fd526a2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_llamaindex-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_llamaindex-0.40.14-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.40.14-py3-none-any.whl
Algorithm Hash digest
SHA256 20362a9e94cf3a5632e62baaedd1f1a003674230d6a4352f2a83716751351267
MD5 10917ff02c1a4947646e9e25ac15db0d
BLAKE2b-256 a0b7a9111350e6789630eb09691644970b76d98a772a7e849e7b03131282e99f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_llamaindex-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