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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.28.1.tar.gz
Algorithm Hash digest
SHA256 2a9d1c34b4b7c5df52351d1e51811a74083b3434ff15522115d74cd9ec8566fe
MD5 85d968325e065b45f256ecf37939c168
BLAKE2b-256 82b6b7c82f1c5277f555b771fb901e84495f9b2dad23862a04a9fcfd4cd37ef1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d997ad3f33a13348190610ec485031208f8011bf263bad0eef719b7445a1ef0
MD5 0c07fb42e8f89b35842a88a7981220c6
BLAKE2b-256 5e035b64783e0c06c0abd6fc3c359e46c1e4042f71bc3c1fe7afc224b6d37f7a

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