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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.2.tar.gz
Algorithm Hash digest
SHA256 b3b691c11edf6c8e5eb09fa6d6052cbcd78dc886711e3f7f0b3d627aaf06939f
MD5 c1ac1548567748ce58e9cc593d0fe062
BLAKE2b-256 9235df4888d24d0cf6b12212a873d73c0cc336a55e75f7edc72c68bb79f493e7

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_replicate-0.26.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4cc9b368ec2d68a4fc7cf84a214bfdc247452434f0fb4d210a34b979ba28ac4f
MD5 dfc6530606a19f677b5f29ec30c9f0d0
BLAKE2b-256 c48f0a2299aa848df3ff78f71f4e08b4682067b05c25b082eb8cbd29709d0e3c

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