getsentry / getsentry/sentry-python
feat(cohere): Instrument async client methods
Aperta
Improvement
Python
Spans
- Lingua principale
- Python
- Stelle
- 2.2k
- Fork
- 669
- Merge medio
- 1g 1h
- PR unite (30g)
- 213
Descrizione
No `AsyncClient` methods are wrapped. Both the OpenAI and Anthropic integrations wrap async variants (`AsyncCompletions.create`, `AsyncMessages.create`, etc.). The Cohere async client's `chat`, `chat_stream`, and `embed` methods should be instrumented to match.
**Acceptance criteria:**
* Async `chat`, `chat_stream`, and `embed` methods emit spans
* Behavior mirrors the sync wrappers (token usage, input/output data, error handling)
* Follows `gen_ai.*` attribute conventions (not deprecated `ai.*`)
* Sets `gen_ai.system = "cohere"`
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.