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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.2.tar.gz
Algorithm Hash digest
SHA256 95ac180195485ab823737ab87551eb36d1f7b5a6f51df8fcacad7ff6b3017942
MD5 a2f3bb3e8fc70d17b17e4161bf365f8f
BLAKE2b-256 d55de046c482beb16ef48c6daa25f3ddfb6fedf6ccbec5b4531f1bc442167fbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c57367fab3b62d864fb342d7e615455d0902be75b4f6f3920ce131a88275259
MD5 ee3f5576508ad2594694476279cfad12
BLAKE2b-256 eb74bceef05cd1572b408f029e8d3b8546f11ad7a7f7f9d7642eee1889d596c1

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