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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.6.tar.gz
Algorithm Hash digest
SHA256 2b28b571aad66f4030c31be773a25497085c47dbada6b329e09fe23bde78ddee
MD5 22cfc76f53c3b3c368ff30173fd526fa
BLAKE2b-256 c4d7e93e37e67e3f0a8e71530aa63fce2c68a19063fd0aff79f7f179d9e2de5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_replicate-0.33.6.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da0e4af2407b265b2c5b70fbfd24f11549c97865d47dba2621362b6ce9b9eccd
MD5 decb79ae7591a2834f113ad8a142bff4
BLAKE2b-256 9737f5d615a286fbb3936cf886270369b903fbdc92ff7412778623fd92f84d67

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_replicate-0.33.6-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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