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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.16.4.tar.gz
Algorithm Hash digest
SHA256 e01ec93a685bac2c5e2737bb50003d274a77cc44b105eaf4df1ebba90a0d75a3
MD5 2bbc46a99fabe04f6248d8b11883c2a1
BLAKE2b-256 89d341bc9cabc53dc117cebf39e4a09a36b19d781ed167ba0bb7520aa8758278

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.16.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6afcddc9d2a1f6721393633a91b259116e61699988966fad24e4054a23de4eb7
MD5 5492a8ec49777c9e2ee2df01215f324b
BLAKE2b-256 e295e5f98c527329d095e784f4cb62afab68b90494d9fb2ce7da5364322933fe

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