getsentry / getsentry/sentry-python

feat(cohere): Instrument `ClientV2` methods

オープン
#5,844 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Improvement Python Spans
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

The Cohere V2 client (`cohere.ClientV2`) exists but its methods are not patched. The current integration only patches `BaseCohere` and `Client`. If `ClientV2` doesn't inherit from `BaseCohere`, calls through the V2 client go completely unmonitored.

Need to verify the inheritance chain and patch accordingly.

**Acceptance criteria:**

* `ClientV2.chat`, `embed`, and other relevant methods emit spans
* Follows `gen_ai.*` attribute conventions (not deprecated `ai.*`)
* Sets `gen_ai.system = "cohere"`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。