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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.8.tar.gz
Algorithm Hash digest
SHA256 71a41ae833c173d7029f67f98797e4b04e91f0318175fa5d883661982585e095
MD5 10edcfaad6cb8f2837d0ff8978b3aa7e
BLAKE2b-256 135d120692bd70ed194cc352342c488bd51780747f7d9987996068fc154c49f7

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a99d79921f03f4dc5a9dbf9aaba75c331aeda09cf0f04c00344c8b90a1ae969f
MD5 102627f14ccce8b05fe9b001c75bda48
BLAKE2b-256 d2065ba036ef363a9ceba99abe8665241340dc6fc407e6dfef02962480986e3c

See more details on using hashes here.

Provenance

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