@@ -401,7 +401,7 @@ type HistogramOpts struct {
401
401
// Histogram by a Prometheus server with that feature enabled (requires
402
402
// Prometheus v2.40+). Sparse buckets are exponential buckets covering
403
403
// the whole float64 range (with the exception of the “zero” bucket, see
404
- // SparseBucketsZeroThreshold below). From any one bucket to the next,
404
+ // NativeHistogramZeroThreshold below). From any one bucket to the next,
405
405
// the width of the bucket grows by a constant
406
406
// factor. NativeHistogramBucketFactor provides an upper bound for this
407
407
// factor (exception see below). The smaller
@@ -432,7 +432,7 @@ type HistogramOpts struct {
432
432
// bucket. For best results, this should be close to a bucket
433
433
// boundary. This is usually the case if picking a power of two. If
434
434
// NativeHistogramZeroThreshold is left at zero,
435
- // DefSparseBucketsZeroThreshold is used as the threshold. To configure
435
+ // DefNativeHistogramZeroThreshold is used as the threshold. To configure
436
436
// a zero bucket with an actual threshold of zero (i.e. only
437
437
// observations of precisely zero will go into the zero bucket), set
438
438
// NativeHistogramZeroThreshold to the NativeHistogramZeroThresholdZero
@@ -817,7 +817,7 @@ func (h *histogram) observe(v float64, bucket int) {
817
817
}
818
818
}
819
819
820
- // limitSparsebuckets applies a strategy to limit the number of populated sparse
820
+ // limitBuckets applies a strategy to limit the number of populated sparse
821
821
// buckets. It's generally best effort, and there are situations where the
822
822
// number can go higher (if even the lowest resolution isn't enough to reduce
823
823
// the number sufficiently, or if the provided counts aren't fully updated yet
0 commit comments