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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.12.tar.gz
Algorithm Hash digest
SHA256 4ea626d096fdf4c64e04a63b437e36f72a4341f818034ee6dc73ba1dba9ab341
MD5 51c277dcf6b167beb44c4a0fb34194e9
BLAKE2b-256 fe96f9cfc4f27c20deabfca237cb26734f060525b43e6993f753fad4ee0eded1

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3bee3f7f7105259c85145be8c3b68612421860c95ad170f4d03144a3b8c07418
MD5 f567fe432fe8faf9e321b9a069ec008a
BLAKE2b-256 bf08dce2b7926ace0204ce7946563348e1ff755873e387833484791e4ed391c8

See more details on using hashes here.

Provenance

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