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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.5.tar.gz
Algorithm Hash digest
SHA256 58171528247055bd28ed8af9bbca443b9ce11ecb855c9e6931401160c2cffc51
MD5 cd2caef2d730867e3df5860f584d81f9
BLAKE2b-256 85a88cbd33b15026a4c6796e4a3efba9d8046a619601a36841d8088f89d5976f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.33.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb5983156a15710d64016e72da9d909ee3ef3c8a49d3455c5b060055ee8d597
MD5 8c1105c5a1122b93cd1289b07910a756
BLAKE2b-256 3c31d64226a22a47d96e3b2d80254249e27988b391b3cc0a099f9f1e03707dd1

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