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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.15.0.tar.gz
Algorithm Hash digest
SHA256 85263c2d4ae30d623953c1341f131e5faaaab1748d3c657d8cdd597429998ce3
MD5 7e18a0d655b9028234f9c9f4c627a5c6
BLAKE2b-256 108d2174f0fe3f1f8552a80388732dda411cb29f6d89458f960ffbb073e27a1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8072c60f792d86511fdc0a68eb49f969d7cef069500489a2b972024b9e2db430
MD5 7ff826ef7a1bbe0806a245b83f4bc5eb
BLAKE2b-256 2a197e4cb0c278e50da121e0a1bb339b85dc48e76bdf9ccbd0f574eeac95d960

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