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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.25.5.tar.gz
Algorithm Hash digest
SHA256 179c99fc3df3225a5a7fc1962e1d09f5f9757f3e3c0c807254ebeed7ad9968a9
MD5 569e835b15722fa91129b789883893fc
BLAKE2b-256 06c64476e2524f71bf3ed98770980205e14cbe7663bab38b1f1049a55010b46c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.25.5-py3-none-any.whl
Algorithm Hash digest
SHA256 83f5b30cd816eccd6e63565986a7bb2c10e26698a34dc227ff72ad9e15605c39
MD5 c83431a054b377b674c12371f7c2c625
BLAKE2b-256 299bbf83a8e32ffd62c6dc84d37c7b3b65878957ff82d6ff5a567da0c10efe9a

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