Skip to main content

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


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

File hashes

Hashes for syntrac_opentelemetry_instrumentation_replicate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f27bba47c42bee83a0f2a9ab3f995d6fae81a491842244c617a540512e3325bc
MD5 68cbce87b26d36d4537fd7dc2ad74e36
BLAKE2b-256 2ff0aa28aed773474409577df9af205cf727752bf214a12acda859d6835bac7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_replicate-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c0a400f9e65fc7c23ec9adc000689e44f685df3bac94659b47576c9c461f4bd
MD5 2a283b25cf438577f50ae7ec4804cfb9
BLAKE2b-256 a895fa55218634112b0a9a3cec10ecc062e13467ce0e2094b6f12640e0da3565

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