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 syntrac-opentelemetry-instrumentation-replicate
Example usage
from syntrac_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 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_replicate-0.0.2.tar.gz
.
File metadata
- Download URL: syntrac_opentelemetry_instrumentation_replicate-0.0.2.tar.gz
- Upload date:
- Size: 3.4 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 | f27bba47c42bee83a0f2a9ab3f995d6fae81a491842244c617a540512e3325bc |
|
MD5 | 68cbce87b26d36d4537fd7dc2ad74e36 |
|
BLAKE2b-256 | 2ff0aa28aed773474409577df9af205cf727752bf214a12acda859d6835bac7b |
File details
Details for the file syntrac_opentelemetry_instrumentation_replicate-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: syntrac_opentelemetry_instrumentation_replicate-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 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 | 6c0a400f9e65fc7c23ec9adc000689e44f685df3bac94659b47576c9c461f4bd |
|
MD5 | 2a283b25cf438577f50ae7ec4804cfb9 |
|
BLAKE2b-256 | a895fa55218634112b0a9a3cec10ecc062e13467ce0e2094b6f12640e0da3565 |