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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_replicate-0.17.3.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.17.3.tar.gz
Algorithm Hash digest
SHA256 9ed5a3d7e38892bf0dc40b5607b4a4b27535b1898e6101a54b15023b9baf68d0
MD5 3d4cc1dd343f62039c1f48a5b1408752
BLAKE2b-256 fd58cb63c91692c5cce8f688337add141319fc8be48f6cf025e7ab06e018df4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_replicate-0.17.3-py3-none-any.whl
Algorithm Hash digest
SHA256 abe0a8fc231c892afe70158a3b1822194f19f6aa87a76d7b1fc81c01e89e6f04
MD5 efffdc9facd88e8ab67223464eac44be
BLAKE2b-256 3cdb89e1139edbdd9d13857f065d588b2d531d8ac9087221991be0424050e394

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page