getsentry / getsentry/sentry-python
feat(cohere): Instrument `classify` method
Đang mở
Improvement
Python
Spans
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 669
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 213
Mô tả
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"`
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.