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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.7.tar.gz
Algorithm Hash digest
SHA256 7b67582b1314db1f909d094af4f657f3a9dcfd73255a2699ab75be69390e123a
MD5 5f9ca30d9bfc35ed3808a63db7c58399
BLAKE2b-256 22b83b0f5b5508b6e5c534bd651316ae24566854dae52777cf824b7291925b4d

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.7-py3-none-any.whl
Algorithm Hash digest
SHA256 23c938da18dcbda70fdd183661d829f5d3233b20a2df2986abe8803d52a8c414
MD5 54bb4bb9e198d0356101ea404981e869
BLAKE2b-256 b1c99dc6b8ba3d534109f92f99cb4a95a35b1d6b6bfa40089629732d7026d653

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_replicate-0.33.7-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