Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#1,002 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ms-hujia is already working on this.

Since Jun 17, 2026.

  • #1003 by @ms-hujia — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go

Research direction

Start at the Parse() function and trace how decoded Sample values populate the NumLabel map. Reproduce a sample containing a zero int64 label with no unit, then verify that the label remains present in the decoded map without changing other label handling.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Go
Stars
9.3k
Forks
682
Avg merge
2d 4h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/pprof

All issues in google/pprof

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.