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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_llamaindex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a72e0294a482cef3a5758263ebea38f4d5af4bab27350ce5f3c78890823b9147
MD5 be17ee72388540dfb26a41c6925c7800
BLAKE2b-256 ce206adc73e24633ef0e36723854ba5f9cb36239d7f882b94a93135089bbe075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_llamaindex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4cc7dff44df33dca85cbbc49a2027eeacf679b29dc17e66df21bd62dd267aad
MD5 3e3f931f8c05026822b850f45f9e8f87
BLAKE2b-256 f86926040b58dcfee1c2973b28341a5ffe4696d8ba6ba49ee807c5b0afd399be

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