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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.6.tar.gz
Algorithm Hash digest
SHA256 175483f9a351c9864c1c34236571f735c19a4b86e899e5e0965968043322598d
MD5 fc7b1504c63ddf7052858a8116410b79
BLAKE2b-256 adf3a3d2802cacb4e130f1d05893d710061691fd0a35f1cd0b149c55fa8fdd53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.6-py3-none-any.whl
Algorithm Hash digest
SHA256 87f84eb6812b86b69f1845c67a39444e266e7911da454e839173e1d360ed2a29
MD5 834b36056437263ed5619239f8874482
BLAKE2b-256 922b2c78da72ce0c2cfc5669251bdde4ff2fccd5169cd2bf50db3f3ef831a1ad

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