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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.31.4.tar.gz
Algorithm Hash digest
SHA256 6d7c4567096ad8e8dd49509c4413a61379e57ca24f279641ff6e2b4f96df0e94
MD5 90553de92fdbe91345da7d63cb8097eb
BLAKE2b-256 8bcfda7d7c5ab348e291370d8228c9c18ab024672445ef56590868c3a6d93ebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.31.4-py3-none-any.whl
Algorithm Hash digest
SHA256 56dc9eec70442458a92810db41184c7c12744355e82173193a298a690a0f3231
MD5 5aefca667235e50759ec364c6d14adb8
BLAKE2b-256 018ca0cca534ee9963286ef68b4bb75db1b3a60c69b326b2731b197ec003e775

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