--- id: opentelemetry-instrumentation-cohere version: "0.62.3" license: Apache-2.0 license_treatment: permissive maintenance: active --- # opentelemetry-instrumentation-cohere — OpenTelemetry Cohere instrumentation License: permissive · Maintenance: active · Downloads: 7.0M/mo ## What it is and what it does This package integrates OpenTelemetry tracing into applications that use the Cohere Python library. When you call Cohere's API endpoints, the instrumentation automatically captures the requests and responses as spans, allowing you to observe and debug your LLM application's behavior through your existing observability stack. By default, it logs prompts, completions, and embeddings to span attributes for full visibility into what your application is sending and receiving. If that poses a privacy or storage concern—because the data may contain sensitive user information—you can disable content logging by setting the TRACELOOP_TRACE_CONTENT environment variable to false, which will still trace the calls but omit the actual payloads. Use it for: - Debug Cohere API calls in development by inspecting prompts, responses, and latency in your tracing backend. - Monitor LLM application performance in production by collecting spans and correlating them with other service traces. - Audit and log what data your application sends to Cohere while keeping sensitive content out of traces. - Troubleshoot integration issues by examining the full request-response cycle captured as OpenTelemetry spans. - Evaluate output quality by reviewing completions and embeddings alongside application context in traces. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Automatically traces calls to Cohere's API endpoints when using the official Cohere Python library, capturing request and response data as OpenTelemetry spans. Yes, if you use Cohere's API and already have an OpenTelemetry collector or exporter in place. The package is actively maintained, has no known vulnerabilities, and adds minimal overhead. Install it only if you need observability into Cohere calls; it is not useful without an OpenTelemetry backend to consume the spans. ## Install pip install opentelemetry-instrumentation-cohere uv add opentelemetry-instrumentation-cohere poetry add opentelemetry-instrumentation-cohere ## Installing opentelemetry-instrumentation-cohere Before you install: Low install friction with a pure Python wheel and four lightweight OpenTelemetry dependencies. Active maintenance with a release 4 days old and recent commits. License in practice: Apache-2.0 permissive license allows use in most commercial and open-source projects with minimal restrictions. Quickstart: pip install opentelemetry-instrumentation-cohere from opentelemetry.instrumentation.cohere import CohereInstrumentor CohereInstrumentor().instrument() Requires Python 3.10 or later. Cohere library must be installed separately to instrument calls. Verify before relying: - Whether the instrumentation works with all Cohere API endpoints or only a subset. - How the span overhead affects latency in production workloads. - Whether custom span processors or exporters are needed to use the traces effectively. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 7.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags opentelemetry cohere tracing, llm instrumentation cohere, cohere api observability, distributed tracing cohere calls, cohere span instrumentation, opentelemetry ai instrumentation, cohere request tracing, observability, llm-instrumentation, cohere [View on SkillFed](https://skillfed.io/packages/opentelemetry-instrumentation-cohere) · [View on PyPI](https://pypi.org/project/opentelemetry-instrumentation-cohere/)