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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.28.2.tar.gz
Algorithm Hash digest
SHA256 be7e4f9ea70199d862e63f34728b2ec4e610ac250307e2c9b8526dd17d85e3b7
MD5 4950c8e041f6e845a7e54985c984e257
BLAKE2b-256 81c5f18ffd5947e7b101f3133f1583329a8c713e8f6c12dd3851db86969d47d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.28.2-py3-none-any.whl
Algorithm Hash digest
SHA256 436571561f12057844901ae68b1b41ad85fb79d24040925daa0a355688caa063
MD5 11da7778e68c3d5b3bc419ef472e738d
BLAKE2b-256 029d95050738c0b053d581a6d5e1ad3502d0bb6649064922d07f437089dec92c

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