OpenTelemetry Replicate instrumentation
Project description
OpenTelemetry Replicate Instrumentation
This library allows tracing Replicate prompts and image generation sent with the official replicate library.
Installation
pip install opentelemetry-instrumentation-replicate
Example usage
from opentelemetry.instrumentation.replicate import ReplicateInstrumentor
ReplicateInstrumentor().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_replicate-0.17.4.tar.gz
.
File metadata
- Download URL: opentelemetry_instrumentation_replicate-0.17.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d628aa8990a1e25aa925b569c981e426842ae2882a5069d0035a50ac74df9c88 |
|
MD5 | b3e2ed0e91e8644a612c90a7d3dd14d7 |
|
BLAKE2b-256 | d438ddc4d035d7b945430a95325a8cbde939271507c57be1919adac2fefd27da |
File details
Details for the file opentelemetry_instrumentation_replicate-0.17.4-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_replicate-0.17.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae1fcfeb1098794b4dc1e9d9fa4e0036200b88ca3d1150f6c3d4adc6bec8733 |
|
MD5 | 7c5365abd8c4d1fe4ab5dede9b127343 |
|
BLAKE2b-256 | 5aab244e48dfb12762e2885a9cff5c49b4276e403753b86e6a100f7526bcdfb3 |