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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.7.tar.gz
Algorithm Hash digest
SHA256 f1afc190795c9acfa1e7eb3d9da6490d0bbdb3a523a38e0bb72b85fa76c485e2
MD5 fa7ae210350a6a5c9ab58239927c35a9
BLAKE2b-256 3cd0d461b5e1aac688d59b1d66cffef7ffbf45741dc339568f7bf881f2062b9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.16.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0533919dacdf9eb60b15154deb9ee0082d89d8affaacf6707640e7b195a48d
MD5 4e0c5275ebe539a43ce765096157a5f6
BLAKE2b-256 3542acc7c684ab12aef809dc30e5de9da1d276c78987921a97ec7c90d3dc74ca

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