getsentry / getsentry/sentry-python
feat(cohere): Instrument `classify` method
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
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"`
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.