Add instrumentation for Cohere (cohere-ai)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- ai, backend, observability
Research direction
Start with packages/server-utils/src/ai/cohere/ and src/integrations/cohere.ts, then inspect the existing mistral and anthropic integrations for structure and registration through getTracingIntegrations(). Instrument CohereClientV2 and CohereClient chat(), chatStream(), embed(), and rerank(), including streaming, with the listed gen_ai attributes and token usage; done means native Cohere coverage is available through the runtime re-exports.
Written by the indexing model from the issue text.
Description
Add native gen-AI instrumentation for the Cohere Node SDK, cohere-ai (repo).
Coverage status
@ai-sdk/cohere(Vercel AI SDK provider, ~3.2M/mo) is already covered by proxy through ourvercel-aiintegration.- The native
cohere-aiSDK is not covered. This issue tracks that path.
Relevance (npm)
cohere-ai: ~1.9M downloads/month (~20.3M last year) — roughly flat-to-modest growth. Cohere is a notable enterprise/RAG-focused provider (chat, embeddings, and rerank), and rerank in particular has no equivalent in the providers we instrument today.
Rough scope
- Add instrumentation logic under
packages/server-utils/src/ai/cohere/and wire it up viasrc/integrations/cohere.ts, registered ingetTracingIntegrations(); runtime packages re-export from@sentry/server-utils. - Instrument
CohereClientV2(and legacyCohereClient):chat()/chatStream(),embed(), andrerank(), including streaming. - Emit
gen_ai.*spans per the span attribute conventions (gen_ai.provider.name = cohere, request/response model, token usage, finish reasons). - Cohere is not OpenAI wire-compatible, so it needs bespoke instrumentation (like
mistral/anthropic), not theopenai-compatibleshim.
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 543
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-javascript
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Task
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsentry/sentry-javascript#24558 · 1 comment ·
-
Task
Difficulty 1/5 Under an hour Newbie friendliness 90/100
getsentry/sentry-javascript#24557 · 1 comment ·
-
Task
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
getsentry/sentry-javascript#24556 · 1 comment ·
-
Task
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
getsentry/sentry-javascript#24555 · 1 comment ·
All issues in getsentry/sentry-javascript
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vicharanashala/fln#563 ·