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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.8.tar.gz
Algorithm Hash digest
SHA256 b8fca32a620c68b9ed8d1e31271852900bb483b0e9b2061f32fce1d88ebb0341
MD5 eb152c978f36f8e701bc34023b76aff1
BLAKE2b-256 9411f4444efb26a29ef3fd671a2173f1021d60efbff348b7d73b77619ddc5c77

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_cohere-0.33.8.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2810fddc6df84a07616067f23e75f48094353ad3209f308d75dd22994fa77f56
MD5 5cf534585825ce23f3277b65e435aa18
BLAKE2b-256 dd855e542ef9cbcd4800b9c0840e9960ee98d110ec6b612b23167a6005f42e30

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_cohere-0.33.8-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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