getsentry / getsentry/sentry-python

feat(cohere): Instrument async client methods

Đang mở
#5,845 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.