prometheus/model/histogram
beorn7 bf0847073d histogram: Modify getBound to deal properly with infinity
The bucket receiving math.MaxFloat64 observations now has
math.MaxFloat64 as upper bound, while the bucket after it (the last
possible bucket) has +Inf.

This also adds a test for getBound and moves the getBound code to
generic.go (where it should have been in the first place).

Signed-off-by: beorn7 <beorn@grafana.com>
2022-10-06 17:40:03 +02:00
..
float_histogram.go histogram: Remove code replication via generics (#11361) 2022-10-03 16:45:27 +05:30
float_histogram_test.go histogram: Remove code replication via generics (#11361) 2022-10-03 16:45:27 +05:30
generic.go histogram: Modify getBound to deal properly with infinity 2022-10-06 17:40:03 +02:00
generic_test.go histogram: Modify getBound to deal properly with infinity 2022-10-06 17:40:03 +02:00
histogram.go histogram: Modify getBound to deal properly with infinity 2022-10-06 17:40:03 +02:00
histogram_test.go histogram: Remove code replication via generics (#11361) 2022-10-03 16:45:27 +05:30