Skip to content

Commit c8a7ccf

Browse files
author
beorn7
committed
Improvements after review.
1 parent 70419a3 commit c8a7ccf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

prometheus/histogram.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ func (h *constHistogram) Write(out *dto.Metric) error {
380380
return nil
381381
}
382382

383-
// NewConstHistogram returns a metric representing a Prometheus histogram with fixed
384-
// values for the count, sum, and quantiles. As those parameters cannot be
385-
// changed, the returned value does not implement the Histogram interface (but
386-
// only the Metric interface). Users of this package will not have much use for
387-
// it in regular operations. However, when implementing custom Collectors, it is
388-
// useful as a throw-away metric that is generated on the fly to send it to
389-
// Prometheus in the Collect method.
383+
// NewConstHistogram returns a metric representing a Prometheus histogram with
384+
// fixed values for the count, sum, and bucket counts. As those parameters
385+
// cannot be changed, the returned value does not implement the Histogram
386+
// interface (but only the Metric interface). Users of this package will not
387+
// have much use for it in regular operations. However, when implementing custom
388+
// Collectors, it is useful as a throw-away metric that is generated on the fly
389+
// to send it to Prometheus in the Collect method.
390390
//
391391
// buckets is a map of upper bounds to cumulative counts, excluding the +Inf
392392
// bucket.

0 commit comments

Comments
 (0)