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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.21.3.tar.gz
Algorithm Hash digest
SHA256 513f54193edad7379242bed3eddd9ba8c148f1812fbff12841368312efbde876
MD5 454d2c52ad043584fc58da159f077626
BLAKE2b-256 bb393f20d40b7309cbc4198465de7f7e1ca89192a32c7999f8c8a349da256d34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.21.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d58bc9ebd4338770816c6091b2b30a2bb87a3fea955bc174aabfbd341d9bddfb
MD5 99f2ec58af541fb6e3abf8823957a6cf
BLAKE2b-256 95e792e76417d089f9cf9da68951a120bc4fb714b8b6aff15c06cf08406f2e88

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