getsentry / getsentry/sentry-python
feat(cohere): Instrument `classify` method
Aberta
Improvement
Python
Spans
- Linguagem predominante
- Python
- Estrelas
- 2.2k
- Forks
- 669
- Merge médio
- 1d 1h
- PRs com merge (30d)
- 213
Descrição
The Cohere SDK's `classify` method (text classification using examples) is not instrumented. This is an AI inference call that should emit spans with model, token usage, and input/output data.
**Acceptance criteria:**
* `classify` calls emit spans with model, token usage, and input/output data
* Follows `gen_ai.*` attribute conventions (not deprecated `ai.*`)
* Sets `gen_ai.system = "cohere"`
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.