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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.6.tar.gz
Algorithm Hash digest
SHA256 9c7404d740fe1cd8eeb9dc3aa11672623657e539e1ddebdb4ef44a25a3d9a5c5
MD5 7453fc36432fbcbc6e58c8e9851bd48a
BLAKE2b-256 de01089fb43338e9f21db99cc6a69cb7a30150bb5881d3e64d17e6dad3e1c7ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aa54518c45988480dc4ed0a983aa18ae87dd2f8be3009b0a4362853ec111e864
MD5 9bb547497b36f5a5044277c7232a7460
BLAKE2b-256 3e9a417979a73b9c3df4c200cd3648eda83c0320e0e57bfa2a01e8c67f0c2a9b

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