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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.15.1.tar.gz
Algorithm Hash digest
SHA256 f83c0da4fafc871ab8f4f81cbb6d144ea1ae5ea27d2308cb2862e09250278890
MD5 70a1dab8177ec5d895f389b1f523368c
BLAKE2b-256 e2cedea6dfc3caf529ec94272eb3f3d06e9054ecca92ba98b28fd02c364eb506

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d9dbad41952da29646c4f5fa68f9acac7c209805a7bba6641d59fcb7f87bede
MD5 c676c4cfae2a199fe715941ab9d3b583
BLAKE2b-256 e6df3d1218a1796e247c6dc90312b613a5713ea65bd96861a6eb04b8edeeb4cb

See more details on using hashes here.

Provenance

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