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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.11.tar.gz
Algorithm Hash digest
SHA256 dbdbe42cbb72eee25fe84ec0ccbf6f34931bf78da38d19e9be72fd62ce865105
MD5 ac67278ce663461707f6b8be422586b5
BLAKE2b-256 4155f907d1e1b63481514d3a055a55052994333cee5a6526b8ed7c0b29a3cb17

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.11-py3-none-any.whl
Algorithm Hash digest
SHA256 05683527c1d03cc39ae08cc02a40fb1363fca4226a9e45df524f2767d045ca89
MD5 72322186b34dec2378d5240db58f376f
BLAKE2b-256 90659c8635da417e94a523c07356ac5c203394eebe20a575d4af48bcb2ea89e7

See more details on using hashes here.

Provenance

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