fn add_counter_resets(result: f64, values: &[f64]) -> f64Expand description
Adds the value preceding every counter reset in values to result, in sample order.
Prometheus accumulates the resets into the running result rather than summing them on their own, and the two are not interchangeable in f64: a reset large enough to swallow a later one in an isolated sum still leaves it visible once the first difference is folded in first.