getsentry / getsentry/sentry-python
feat(cohere): Instrument async client methods
Ouverte
Improvement
Python
Spans
- Langage dominant
- Python
- Étoiles
- 2.2k
- Forks
- 669
- Merge moyen
- 1 j 1 h
- PR mergées (30 j)
- 213
Description
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"`
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.