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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.18.1.tar.gz
Algorithm Hash digest
SHA256 bf7d837792a4aaefb6ebe226c8c1d72a23039ae971e3b5be3957f0d6a13cc04d
MD5 c2898b32d1732302ce14b4fc73becc12
BLAKE2b-256 e459375591617467c905236ace16451d229517bd0542d4b8891a5e46ce4291da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_cohere-0.18.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cd90ad67b77a22944b6e921b30fd4dfd8837fc51dc72eaf0e0a937bd0fe69d
MD5 42a7d156d10b2f8c71b8be6feefad5b4
BLAKE2b-256 216a9c0aafe93d27b8e7b5374f9c279a61c60344b61313c00b0fa71a59ad4b5d

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