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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.25.1.tar.gz
Algorithm Hash digest
SHA256 fce3284b17c48a6c23d0c68a5d0b17687d07be4cd96b65da140ca7fe8be9d07b
MD5 72ed05366f2aa63f244080cd0b970636
BLAKE2b-256 6c1e4b4fc06aa2887e8ed4a9484dd535fb3d5a2e317166b7e05673bb4f60dfc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 078c327be14a45075d6e4a716c40d017fc0e09c872ebd5605077ab8413fd3bd6
MD5 5704b9b8b5577fe454886da3425d7959
BLAKE2b-256 231a50af38bee134d91d0cff5041cb319bc40b82f8cd66db97ef442022c2123a

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