runtime,runtime/metrics: various histogram metrics don't follow the API #43329
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
The metrics
/gc/heap/allocs-by-size:bytes
,/gc/heap/frees-by-size:bytes
, and/gc/pauses:seconds
all have issues where the counts don't correctly line up with the buckets.For the former two, it's the fact that the size classes have inclusive upper-bounds and exclusive lower-bounds while the API expects the opposite. For the latter, it's that the implicit bottom bucket representing the range of values
(-inf, 0)
isn't actually treated as a real bucket by the implementation. That bucket ends up containing 0-length durations. And there's an extra bucket at the top.These are minor issues but should be fixed and tested.
The text was updated successfully, but these errors were encountered: