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 syntrac-opentelemetry-instrumentation-replicate

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_TRACE_CONTENT=false

Project details


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

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_replicate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b476ece6940360771bf2b836386ef9dd15dac0694a7d458d82766cbccba93ba4
MD5 7dcf16ea89707732226858935543d4f0
BLAKE2b-256 edaacd426172e307dcdc0369b908726fdb97b8d3b66c4922e0cfa7b801794829

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_replicate-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_replicate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 102076d924516359cfa0dadf305d49d9723e15191f0f08621aad0e5352f0af14
MD5 d713d1b08234fccc65998a665662a8de
BLAKE2b-256 906198923f06a92b3eb598d79b636be8dccfd4c0b7d2cece63956eaee5bb7416

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