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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.0.tar.gz
Algorithm Hash digest
SHA256 ef9ad60221315d6eed3aaa3fd061c7f6b0546daf0635cd97b6ee2a6e8d907b33
MD5 5175a2280af57925b9513feacb81295f
BLAKE2b-256 cb09dd41b0111c19c9eb96f035a529cfe0ff1bb4e39561f0efa45fa90e1a00f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58f28ec8ac3073fdb2984b078c192ff68fa99fbafbfa21a826c0c63ebb8c874a
MD5 5166d2afd766dadf4dedc96976b58e9f
BLAKE2b-256 59de92ea387678ba71a6d3c1cd407ebff778e46dcc64964ce5442419dd75b40f

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