http.request.resend_count metric attribute subtracts 1 from 0-based attempt count
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
src/gax-internal/src/observability/client_signals/transport_metric.rs の引用されたセクションを読み、http.rs と grpc_helpers.rs から渡される attempt_count を、http_tracing.rs で使用されている 0 ベースの値と比較します。初回リクエストと最初のリトライで、一貫した resend_count 属性が生成されることを確認します。メトリクスとスパンの解釈が一致すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Unconfirmed. This is the result of a search with Claude, may be a false positive.
In src/gax-internal/src/observability/client_signals/transport_metric.rs, the http.request.resend_count OpenTelemetry metric attribute is recorded with:
Some((attempt_count.saturating_sub(1) as i64).into())
However, the calling retry loops in http.rs and grpc_helpers.rs pass an attempt_count that is already a 0-based prior-attempt count (0 on initial request, 1 on first retry):
Because saturating_sub(1) is applied to an already 0-based counter, both the initial request and the first retry record resend_count = 0. The attempt span in http_tracing.rs:72-76 treats the value as 0-based, causing the span attribute and metric attribute to disagree.
- 主要言語
- Rust
- スター
- 972
- フォーク
- 163
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 202
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-cloud-rust のほかの issue
-
api: storage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
googleapis/google-cloud-rust#7344 ·
メンテナーはふだん 1 日以内に返信
-
BytesValue in Any rejects unpadded and URL-safe base64対応中かも @akasakariko が 15 日前に担当しました。 オープンpriority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
googleapis/google-cloud-rust#6714 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 半日 初心者へのやさしさ 75/100
googleapis/google-cloud-rust#6710 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
googleapis/google-cloud-rust#6709 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
googleapis/google-cloud-rust#6707 ·
メンテナーはふだん 1 日以内に返信
googleapis/google-cloud-rust の issue をすべて見る
似ている issue
-
bug UI
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
wardian-app/Wardian#1746 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jlcodes99/cockpit-tools#3125 ·
メンテナーはふだん 2 日以内に返信
-
bug user-sprint
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Vondor/KassenSturz#967 ·
メンテナーはふだん 1 日以内に返信
-
area/ci
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Incremental sync warns "no stored highest_uid" on every round for folders with no new mailオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rustmailer/bichon#411 ·