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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.22.0.tar.gz
Algorithm Hash digest
SHA256 0ad61ab21d0c48106a35234eaefcdb7cafa8d5114f1bf459c943935203aaa02d
MD5 4181c0b6f7547d767435e4eb6ff979bc
BLAKE2b-256 2f292718727adad12e8fc222406f718af07345ea55518427661ef26f15077c09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab4861366ba8894244847ee1d5e01d1b573670a06cba15cff3e5a8c5fffcdf8
MD5 e9ab467cd9f31c63b52d51a946601428
BLAKE2b-256 3eb101cb986e9c4e7054e7d3756a4e16654b5946206bdade5a5c6800f2a73ed2

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