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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.1.tar.gz
Algorithm Hash digest
SHA256 269ce2bf8bd46cddde1c9baf1d1385545bdc187f02a584dfca69db3da10c9e34
MD5 b869e620c8c24f57ba85756cfe110ba4
BLAKE2b-256 4c654ac779958dc744220179fc7cc866fcbc8934428fde2fe9d6c10e50b0fc4b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.33.1-py3-none-any.whl
Algorithm Hash digest
SHA256 861a57ce1039235be7aad2e87faf5f225f09a013115045b846da371543e35424
MD5 e01dfc1926e7397e5456018ee6c3dabe
BLAKE2b-256 5e1f42c26b4c005e0b55e00f40cb46cc80fe7ac1c89f751ec7cb3bdd05d610fc

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