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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.20.0.tar.gz
Algorithm Hash digest
SHA256 b4f89e549b1ebffe4852e84f43114f1a42e9fc5dbc4dc5f442ae4ea1badf9a27
MD5 851c20a731a8a79c16359686479284a3
BLAKE2b-256 c920c0f139e89469c0e76637c9c23de002aa2732858074e9a223a22f9edebe93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c9b226bc67b3577d3942ace1cfe62c44e8fcab07bf2c2bca631987c1c8e684
MD5 7bfbbe717971a9aa31c486f70b5f8e42
BLAKE2b-256 23e010a38f9f6f6a7f1a3eb6f6363eba1b8c1cd1ecc89e9e502077e904b3df4b

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