getsentry / getsentry/sentry-python
feat(cohere): Instrument `classify` method
Aperta
Improvement
Python
Spans
- Lingua principale
- Python
- Stelle
- 2.2k
- Fork
- 669
- Merge medio
- 1g 1h
- PR unite (30g)
- 213
Descrizione
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"`
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.