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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.1.tar.gz
Algorithm Hash digest
SHA256 17ea96de34767bdb3910caacab0e9e28a6ebf7fd154e82dcbfd1bad567dbc8ba
MD5 5f379c7138d30e7bd28f110a0e9e3aa9
BLAKE2b-256 fbb5a873a70c82428948555af2908e9a8dd95538f51f3f6b6cf46a19a91fb4bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe4f45561a8b2883bc46b6d19e4462acee8f1d414be790dc45871ab44b26006
MD5 3ff3e13c431850ab21a90eeccb52deda
BLAKE2b-256 400a0a553c31d992b81e8340cc8b34f392a14310c9d07d49f0e1cd6b74489e9b

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