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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.0.tar.gz
Algorithm Hash digest
SHA256 dd0aa4b88372667629ff5faf036fff18f6b3f88b94661e110561a8278ef4ba03
MD5 f1fb45cb4e17df25b59ef4ca3b9973d8
BLAKE2b-256 21dc9559c57be7f23b3d49fffdebfd8cb3da5d06d578898b84090e670de071ac

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f694dfe7527b562e1ef1122a1e1f08dd1807a974dff6b7593289e25d3778d8a
MD5 3b8ed6e1cce5afe179b2e9e9985f2214
BLAKE2b-256 ebda735b121bb34d2cba3ec741bf3f5852bc4323a961acdbd7f23d38b27b321e

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