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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.1.tar.gz
Algorithm Hash digest
SHA256 70a0217696d4676ee236a6ada8d33fc563b12fc0f62f59699bac9ef1eeafc2b5
MD5 f5251d5acc8a3db5a5b7e5e6b128d1c4
BLAKE2b-256 bdcc13bed2251145418d35ffd4b94b0b3b86b7301a0bf12b352434f756aba16f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dff1214ce816e52f0ad9bb0026193a122359fac3c5b702cca3fe4bf0b2f77baa
MD5 edebd428c0a945f9678cd8a851602daf
BLAKE2b-256 f412ef037f8eb884ed14b7b0c11d51e992c716fd925077d3ca7dccb9f23b9e3a

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