test(core): the +Inf bucket is its le label, not its value (#5667)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,7 @@ rpc_count 30
|
||||
assert [s.name for s in fams["req_seconds"].samples] == [
|
||||
"req_seconds_bucket", "req_seconds_bucket", "req_seconds_sum", "req_seconds_count",
|
||||
]
|
||||
assert math.isinf(fams["req_seconds"].samples[1].value)
|
||||
assert fams["req_seconds"].samples[1].label_dict() == {"le": "+Inf"}
|
||||
assert [s.name for s in fams["rpc"].samples] == ["rpc", "rpc_sum", "rpc_count"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user