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 syntrac-opentelemetry-instrumentation-llamaindex

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_TRACE_CONTENT=false

Project details


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 syntrac_opentelemetry_instrumentation_llamaindex-0.0.1.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_llamaindex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 edce2e77bf8edf94d954456d4bb2cd5eba72dc3ca1ac5dbc8f342bc12c2eff85
MD5 3c7b5d28a325f19a230589568a1ab9ed
BLAKE2b-256 cdd7b7704bc4706abf6aaeb50242f4cea3a9d7861d48ce9053febfad834f5997

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_llamaindex-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_llamaindex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c78078298c02424e02079b0542b5ce850466fbd7a3c4f4f1e446bb75fea8c787
MD5 a772bd1b3008735d031bbaa553827564
BLAKE2b-256 d839b2053cece95acee3e51ffe7b6d5383f69ce29b794474b63f7e7023004223

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