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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.12.tar.gz
Algorithm Hash digest
SHA256 5dafad1a7a20ba762f689f30c4f76bcb3817b617adb7da3288ac545d15a14565
MD5 bf0dd6f8cff1dd643995f84ebded3573
BLAKE2b-256 891eb4260513c9526b2113772e4bf10bee714555abfb6e7cf69f86326e5607d5

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 dc527f470080248a57b738b63ed29eae2d82ef68a100fe6e3548f5de7677f2ed
MD5 3397e5d75bc8cae2eacaea5e1ad5f480
BLAKE2b-256 4d6d20dab686dce1ce491c97ea4a0feec86b9a2207891a2627b1f4a670d109b5

See more details on using hashes here.

Provenance

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