Label with zero int64 value and no unit get dropped during decoding

オープン
#1,002 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ms-hujia がすでに取り組んでいます。

2026年6月17日 から。

  • #1003 @ms-hujia による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go

調査の方向性

Parse() 関数から開始し、デコードされた Sample の値が NumLabel map にどのように格納されるかを追跡します。単位のない値 0 の int64 label を含む Sample を再現し、その後、他の label の処理を変更せずに、デコードされた map にその label が残っていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

The current behavior of Parse() function will drop labels with zero int64 value and no unit. For example, a thread id with zero value is meaningful and no unit is applicable. This behavior will cause the thread id information getting dropped for specific samples since the key won't exists in the NumLabel map of decoded Sample.

Should this be fixed to support label with zero int64 value?

主要言語
Go
スター
9.3k
フォーク
687
平均マージ
4日 17時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/pprof のほかの issue

google/pprof の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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