A Summary captures individual observations from an event or sample stream and summarizes them in a manner similar to traditional summary statistics: 1. sum of observations, 2. observation count, 3. rank estimations. A typical use-case is the observation of request latencies. By default, a Summary p
| 52 | // |
| 53 | // To create Summary instances, use NewSummary. |
| 54 | type Summary interface { |
| 55 | Metric |
| 56 | Collector |
| 57 | |
| 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. |
| 64 | Observe(float64) |
| 65 | } |
| 66 | |
| 67 | var errQuantileLabelNotAllowed = fmt.Errorf( |
| 68 | "%q is not allowed as label name in summaries", quantileLabel, |
no outgoing calls
no test coverage detected