opentelemetry-instrumentation-cohere
OpenTelemetry Cohere instrumentation
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 on this page — 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
opentelemetry-instrumentation-cohere on PyPI
pip
pip install opentelemetry-instrumentation-cohereuv
uv add opentelemetry-instrumentation-coherepoetry
poetry add opentelemetry-instrumentation-cohereInstalling 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 the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,007,751/month — #1,799 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_cohere-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
cohere-compass-sdkParse documents via a remote Compass Parser API…
unclear · top 15,000 on PyPI
opentelemetry-instrumentation-writerAutomatically traces calls to Writer's API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-togetherAutomatically traces calls to Together AI's API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-replicateAdds OpenTelemetry tracing to Replicate API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-mistralaiAutomatically captures and traces calls to the…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-groqAutomatically captures traces of Groq SDK API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-vertexaiAutomatically captures traces of VertexAI API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-alephalphaAutomatically captures and traces calls to…
permissive · top 5,000 on PyPI