Skip to main content

OpenTelemetry Cohere instrumentation

Project description

OpenTelemetry Cohere Instrumentation

This library allows tracing calls to any of Cohere's endpoints sent with the official Cohere library.

Installation

pip install opentelemetry-instrumentation-cohere

Example usage

from opentelemetry.instrumentation.cohere import CohereInstrumentor

CohereInstrumentor().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_cohere-0.18.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.18.0.tar.gz
Algorithm Hash digest
SHA256 e959ee60738da3e4c003478c25fff5caf19171ba7d4eee9c880a25de4dd5228a
MD5 5bba56f9efbdb03f8367cc42bad472d5
BLAKE2b-256 9ce2625e31a3a985b154434d7332cdb2e6bdeb97bd7558dc007ab78e810f3b03

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_cohere-0.18.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1d85859152c981cb38cae91110885247e0413b10b22979ca4cf1bb66002299b
MD5 0868ad8fad12760638f7ff3bfa49a920
BLAKE2b-256 b33ae7da2cc50e796c2267658834450938dc56fcb734e63b69bd260c2f9f93cb

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