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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.26.5.tar.gz
Algorithm Hash digest
SHA256 8b2ff1ae2c8131922e4c47aff6c55da40f631098ea09fdb628a9a023c07186b6
MD5 fecf38f6161c8e2c72a8081249092a79
BLAKE2b-256 05b354f3765840f4f277333cc0f775df87504762e7f78a1df4cd403fc09301c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.26.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e1ed673a348918ac0bdf93b4159d9cf6a0e69b8e58658ab36eadcf81fad3b6
MD5 80f9a4f3c67db13b8537877d7e7b0f3a
BLAKE2b-256 2512f49205056da3de040d725f4bad1454e92e03e44a5de2d4939e4d546997b5

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