getsentry / getsentry/sentry-python
feat(cohere): Instrument async client methods
Đang mở
Improvement
Python
Spans
- Ngôn ngữ chính
- Python
- Star
- 2.2k
- Fork
- 669
- Merge trung bình
- 1 ngày 40 phút
- Pull request đã merge (30 ngày)
- 212
Mô tả
No `AsyncClient` methods are wrapped. Both the OpenAI and Anthropic integrations wrap async variants (`AsyncCompletions.create`, `AsyncMessages.create`, etc.). The Cohere async client's `chat`, `chat_stream`, and `embed` methods should be instrumented to match.
**Acceptance criteria:**
* Async `chat`, `chat_stream`, and `embed` methods emit spans
* Behavior mirrors the sync wrappers (token usage, input/output data, error handling)
* 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á.