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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.2.tar.gz
Algorithm Hash digest
SHA256 cd1a019988677a0d8c38f433d81e4fe04db49ab9a1dbbb98326882e21291bc64
MD5 e27326d8db32472e2a0d8ba636bb6cbc
BLAKE2b-256 dcbbe4df134cdaef6c3e75ba8f6acf754f5873f80572c5b505dda77d7e907d31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2ac9212960ec2d2b843964432c6011989f93aa98a26186972e696ff10fbc4c
MD5 9e8111c2966a9434e4a689b0ddafb41c
BLAKE2b-256 2ebfe2c6e134d38ed745dc6225494fd88d3f1900518a86a3c16e7d65e252fe03

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