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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.21.0.tar.gz
Algorithm Hash digest
SHA256 00d716e6aea00f742b3771c0e7c3176d29dea3c3c531252e0140fb19e9b8cc86
MD5 b298c964c96d5c832301d92690b5dec4
BLAKE2b-256 b607f77f4c596084b4db9bddcc6ee8ba994a5a0d9abd27cf765b857241cb125c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1697d8917c4a81ede2d31e0792ce683062fb0ede40983c5c43151dadd45308a8
MD5 e661286b73ed43d3846e7dca099f1226
BLAKE2b-256 c8986dd2d22a708092f74539093ff14e3d551a5105bd7c1b9442c8772c5d26aa

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