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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.3.tar.gz
Algorithm Hash digest
SHA256 07128db7599dfd0ef13278991ccaddbbbb1ece9153584cf7a1a58db0353610c7
MD5 d387715b0116fec600c955ca09017040
BLAKE2b-256 d52e3e0e3288529afbdc163530b462557225e2e566bb31aed3ef5b1b7080cfd6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.31.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c251702059f5c6f6daa76c6c14b7f4aab06f7ab4140264e25ac524eb033a5242
MD5 80700d01cb0b659c462555bebc96d67c
BLAKE2b-256 241dd3716950d74a16a0d0802e5eb247461a6de544e2b01177b534f7edae8742

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