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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.28.0.tar.gz
Algorithm Hash digest
SHA256 8307d9a30138cd68c552c7291d09cec097300ff25f47167143d9f2f59b7e17b5
MD5 d0c75d0307cc8f13dd6c055b2caec3c8
BLAKE2b-256 1e53be92c5e2663fd75c6f68d301a47f342402885bf6dcc607f32fe00689be2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc77a3a8057a8dd9f12b8c1838f329e4676f392f7538487aeaf776130a1fa4cc
MD5 2cf61fbe59fe16eff886b49ecd117d63
BLAKE2b-256 a9afe7530146788d0bfa427eb3b0ec95cb2096aa038b9f32e2cd399d234645be

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