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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.32.2.tar.gz
Algorithm Hash digest
SHA256 469da126ddbe20496d2b19e4ea360a69c47d82de976e6d2c8d290e25895f4a84
MD5 cd2cf0a03116654da7dfdfd6a5839d8b
BLAKE2b-256 5b0f83b47929add02c3f0be01f6c63c1e426cf0d8cb24a767800ec0b5644a4e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.32.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aef249daf869f3f7d0ba72089a3e33012bd34e92547c7065fa690a3c921bc4b4
MD5 8e419088fbe5b71887f771c8f25b8f52
BLAKE2b-256 df2bfcd4157916891e8e758d62991b64fe5a75c25e6ba0483c7b1ef784cd19dd

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