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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.0.tar.gz
Algorithm Hash digest
SHA256 1d152af8b3fd68c9dc2005ed8e54560a4b3759511291f2cf53168c8454483edb
MD5 8386a2808e4a8d9e7cfc3f5d7e1ee338
BLAKE2b-256 1ccf7c5fa5b34c64160d7e9f9b98218dd7d1a01024eaf3b9763013e9ec721033

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a53b72320aee244245f9dc7c0b4321f864a0bc9c3399a56804f39f3c1ae5d422
MD5 338e865eb9fb8eb3012a691754b9d596
BLAKE2b-256 c031a02e8abf260f948a518592bb7cb92a9464fd3714c197b1633b88635f1270

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