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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.5.tar.gz
Algorithm Hash digest
SHA256 5f8e8e8ae8402e595fbebc3b0134452438090ea1ff368cbfa026ac60b2c6a63f
MD5 eebffbedf54afd6d82d1a1ff88f03d7f
BLAKE2b-256 88209d83fbe41b1ffc4cdffac3a1e6bbec1e9ffa29015359c0556955e33c33c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3974027a4042365a35707f166c02b684acc3440c7410cc83a9f53f1dbc5c5eb2
MD5 33759d6aab0af6d1ffacd051911c095d
BLAKE2b-256 7406e307a7f6c5842eea96a41d7656c9f24107c51d97e778fc57f536b1776ac8

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