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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.10.tar.gz
Algorithm Hash digest
SHA256 dec008cab65203c164f2b2f1b38446dca1f2c2c2d7c24e47e085f68413fe11c5
MD5 353fae3880855a106b88916b1a26eef0
BLAKE2b-256 43cda3de51d32061de57335d1d399dfd54ddec4d4dba116549693c8ac20688e7

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9e7e51fc5f0959d4da51262b13057afa0ccf8e0d4336fabe6eae804f7db40111
MD5 344ddbb90e27ae5fb65a458a5ff92fd5
BLAKE2b-256 64c4b968f751dd3f14853fa942fc2ef0c26de607f52941d491ccaa27cf94da8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_cohere-0.33.10-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