File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1886,16 +1886,16 @@ func validateExemplars(exemplars []*dto.Exemplar) error {
1886
1886
//
1887
1887
// zeroBucket counts all (positive and negative)
1888
1888
// observations in the zero bucket (with an absolute value less or equal
1889
- // the current threshold)
1889
+ // the current threshold).
1890
1890
// positiveBuckets and negativeBuckets are separate maps for negative and positive
1891
1891
// observations. The map's value is an int64, counting observations in
1892
1892
// that bucket. The map's key is the
1893
1893
// index of the bucket according to the used
1894
- // Schema. Index 0 is for an upper bound of 1.
1894
+ // Schema. Index 0 is for an upper bound of 1 in positive buckets and for a lower bound of -1 in negative buckets .
1895
1895
// NewConstNativeHistogram returns an error if
1896
- // 1. the length of labelValues is not consistent with the variable labels in Desc or if Desc is invalid.
1897
- // 2. the schema passed is not between 8 and -4
1898
- // 3. the sum of counts in the bucket do not equal count
1896
+ // - the length of labelValues is not consistent with the variable labels in Desc or if Desc is invalid.
1897
+ // - the schema passed is not between 8 and -4
1898
+ // - the sum of counts in the bucket do not equal count when sum is not Nan
1899
1899
func NewConstNativeHistogram (
1900
1900
desc * Desc ,
1901
1901
count uint64 ,
You can’t perform that action at this time.
0 commit comments