File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ type Histogram interface {
4747 Metric
4848 Collector
4949
50- // Observe adds a single observation to the histogram.
50+ // Observe adds a single observation to the histogram. Observations are
51+ // usually positive or zero. Negative observations are accepted but
52+ // prevent current versions of Prometheus from properly detecting
53+ // counter resets in the sum of observations. See
54+ // https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
55+ // for details.
5156 Observe (float64 )
5257}
5358
Original file line number Diff line number Diff line change @@ -55,7 +55,12 @@ type Summary interface {
5555 Metric
5656 Collector
5757
58- // Observe adds a single observation to the summary.
58+ // Observe adds a single observation to the summary. Observations are
59+ // usually positive or zero. Negative observations are accepted but
60+ // prevent current versions of Prometheus from properly detecting
61+ // counter resets in the sum of observations. See
62+ // https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
63+ // for details.
5964 Observe (float64 )
6065}
6166
You can’t perform that action at this time.
0 commit comments