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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.20.0.tar.gz
Algorithm Hash digest
SHA256 9b18cf6d6171d9a8dfd67969fb10c8305a862dd1f766f4739e382b933d513053
MD5 0c54510be45fbd8fa8a1bbce1a4b61df
BLAKE2b-256 1c92f0b2adc180ef8a8e7ccc17f4ce093ef756823b8d9316bfee792b09b94b2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1ba08fa0564bd73751e189c27f1d7c3d2887063958a6b88c9c0a959bab2f4c
MD5 e427ca24b44ec96915c2b771d5bff5c9
BLAKE2b-256 9de1651e1dcc2dbf4febae27d02e3e9289c5291d01ae0d51324ef5bdfa441bec

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