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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.9.tar.gz
Algorithm Hash digest
SHA256 35583a9b837071584dd56426f40ac91bddd8f4a5323356d7f4cfdc841d69d4c2
MD5 9966686462363503b148d0d4c31ecb4f
BLAKE2b-256 ae13380ba2ae09b89e0880c48dd383e27fc59837ee80eb1471d1a81cbd2427a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.9-py3-none-any.whl
Algorithm Hash digest
SHA256 af99b747e449754afa3ef0fe2768751a858c1024a74002c9e59b2d92d24fcde4
MD5 d8e1b815a1f0cc9a23b729cfc85fabb2
BLAKE2b-256 9c81c59f1761e4d1ddec38472094903c16112c2c2560c4d4ac259f0527970434

See more details on using hashes here.

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