Skip to content

Commit b6edaac

Browse files
shivanthzenbeorn7
andauthored
Update prometheus/histogram.go
Co-authored-by: Björn Rabenstein <[email protected]> Signed-off-by: Shivanth MP <[email protected]>
1 parent 11b8934 commit b6edaac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/histogram.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,9 +1884,9 @@ func validateCount(sum float64, count uint64, negativeBuckets, positiveBuckets m
18841884
// index of the bucket according to the used
18851885
// Schema. Index 0 is for an upper bound of 1 in positive buckets and for a lower bound of -1 in negative buckets.
18861886
// NewConstNativeHistogram returns an error if
1887-
// - the length of labelValues is not consistent with the variable labels in Desc or if Desc is invalid.
1888-
// - the schema passed is not between 8 and -4
1889-
// - the sum of counts in all buckets including the zero bucket does not equal the count when sum is not Nan
1887+
// - the length of labelValues is not consistent with the variable labels in Desc or if Desc is invalid.
1888+
// - the schema passed is not between 8 and -4
1889+
// - the sum of counts in all buckets including the zero bucket does not equal the count if sum is not NaN (or exceeds the count if sum is NaN)
18901890
func NewConstNativeHistogram(
18911891
desc *Desc,
18921892
count uint64,

0 commit comments

Comments
 (0)