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
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 syntrac_opentelemetry_instrumentation_llamaindex-0.0.1.tar.gz
.
File metadata
- Download URL: syntrac_opentelemetry_instrumentation_llamaindex-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | edce2e77bf8edf94d954456d4bb2cd5eba72dc3ca1ac5dbc8f342bc12c2eff85 |
|
MD5 | 3c7b5d28a325f19a230589568a1ab9ed |
|
BLAKE2b-256 | cdd7b7704bc4706abf6aaeb50242f4cea3a9d7861d48ce9053febfad834f5997 |
File details
Details for the file syntrac_opentelemetry_instrumentation_llamaindex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: syntrac_opentelemetry_instrumentation_llamaindex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78078298c02424e02079b0542b5ce850466fbd7a3c4f4f1e446bb75fea8c787 |
|
MD5 | a772bd1b3008735d031bbaa553827564 |
|
BLAKE2b-256 | d839b2053cece95acee3e51ffe7b6d5383f69ce29b794474b63f7e7023004223 |