Skip to content

Commit 1b19d5f

Browse files
committed
Fix docstring references to renamed native histogram fields / functions.
Signed-off-by: Julius Volz <[email protected]>
1 parent 7352ab7 commit 1b19d5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/histogram.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ type HistogramOpts struct {
401401
// Histogram by a Prometheus server with that feature enabled (requires
402402
// Prometheus v2.40+). Sparse buckets are exponential buckets covering
403403
// 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,
405405
// the width of the bucket grows by a constant
406406
// factor. NativeHistogramBucketFactor provides an upper bound for this
407407
// factor (exception see below). The smaller
@@ -432,7 +432,7 @@ type HistogramOpts struct {
432432
// bucket. For best results, this should be close to a bucket
433433
// boundary. This is usually the case if picking a power of two. If
434434
// NativeHistogramZeroThreshold is left at zero,
435-
// DefSparseBucketsZeroThreshold is used as the threshold. To configure
435+
// DefNativeHistogramZeroThreshold is used as the threshold. To configure
436436
// a zero bucket with an actual threshold of zero (i.e. only
437437
// observations of precisely zero will go into the zero bucket), set
438438
// NativeHistogramZeroThreshold to the NativeHistogramZeroThresholdZero
@@ -817,7 +817,7 @@ func (h *histogram) observe(v float64, bucket int) {
817817
}
818818
}
819819

820-
// limitSparsebuckets applies a strategy to limit the number of populated sparse
820+
// limitBuckets applies a strategy to limit the number of populated sparse
821821
// buckets. It's generally best effort, and there are situations where the
822822
// number can go higher (if even the lowest resolution isn't enough to reduce
823823
// the number sufficiently, or if the provided counts aren't fully updated yet

0 commit comments

Comments
 (0)