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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.15.4.tar.gz
Algorithm Hash digest
SHA256 9e4378e148354b790a42a4d50dc6a9d9c0145468fe3f57dbfc5e5d0b6b3e2b33
MD5 82363b71fe35810ec5cf15f43170cef5
BLAKE2b-256 f5ef98e63c85b0d830e36eaf199b03160b7854c72f72e38df6e49c7b6743de26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.15.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a119f7f9cc9b3fee77fdcd08d426ee78c217ed527b3e5f5bb8a6cbad3feb1e31
MD5 75b8f854d7ec7dc3c1470f33af323417
BLAKE2b-256 06092170165572adb5d32355b254975a75d71f9a2d1c968ba44e2559e3d83251

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