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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.17.2.tar.gz
Algorithm Hash digest
SHA256 501983206be3b77ab4469d4626b5f4233643d5ebfef19d3f62a462a260fc06bb
MD5 9dc100cdeff6afa80bd5cb1bd62bcee5
BLAKE2b-256 326f0b4f30360fb78b6fa4d229b6a55948d2b15b0a7af4259b4f2029254fd0d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_llamaindex-0.17.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf59283713b8a8970a3443436211d23eef5fad1616a267d3db760e34c121cc3
MD5 76750a30bc1878f10c99e955b5b630d6
BLAKE2b-256 502f965172fd32d2dfa1b6bfb356999e69e8168f9b680e33aa129f0fa02de5fe

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