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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.22.0.tar.gz
Algorithm Hash digest
SHA256 69fadcdc95cc6133bb012fcabf20edd4768eb507ec7d8b0fd4da46660a279694
MD5 c37b2f8ab77375fcd597a14869c80fda
BLAKE2b-256 9f9b4a01f9c8631d5f7a84fc2c6954ae0242e35459dee56888b50f8112e47ba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1975c1c93c16c4c73dcd19aad9b46d17d3135591b4d182b1c567a2f6edcc55
MD5 ee41a08774ed858d99312493ba4f40eb
BLAKE2b-256 f1a9d57d272159205995ab965059e8a72cd8ad22d57c4c82fc036646eb8a35c5

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