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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.1.tar.gz
Algorithm Hash digest
SHA256 1e73202805ad404e51e30a10fe6d26ac49cd2118f3c88554628e14b2a34dfb43
MD5 da46205dfea00071a1fc2214e5fcf062
BLAKE2b-256 a0e9a04131c31648c3bc1ae9d7566e18e62e3c1fc7253d993df9ffdee58242c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd33fce6696febbbcddd31b7f0eb3420c78e8a45f29d2df975800b8e11fcc613
MD5 48427cb4b05b8bf0b53cd8869bda4f65
BLAKE2b-256 f6bed8f7af3ad404f359f4f0fea11df1da99340a61fa7878d78928e13554bb1f

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