Add instrumentation for Cohere (cohere-ai)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
- Ambito
- ai, backend, observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 1g 18h
- PR unite (30g)
- 543
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-javascript
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-javascript#24558 · 1 commento ·
-
Task
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
getsentry/sentry-javascript#24557 · 1 commento ·
-
Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
getsentry/sentry-javascript#24556 · 1 commento ·
-
Task
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
getsentry/sentry-javascript#24555 · 1 commento ·
Tutte le issue di getsentry/sentry-javascript
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ontola/atomic-server#1625 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
bug via-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
midnightntwrk/midnight-sdk#403 ·