getsentry / getsentry/sentry-python
feat(cohere): Instrument `classify` method
未關閉
Improvement
Python
Spans
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 669
- 平均合併
- 1 天 40 分鐘
- 30 天內合併 PR
- 212
描述
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"`
貢獻指南
評估
這個 Issue 還沒有評估資料。