diff --git a/z/histogram.go b/z/histogram.go index 25d57516..6c9a85f3 100644 --- a/z/histogram.go +++ b/z/histogram.go @@ -175,6 +175,7 @@ func (histogram *HistogramData) Percentile(p float64) float64 { return histogram.Bounds[len(histogram.Bounds)-1] } +// Clear reset the histogram. Helpful in situations where we need to reset the metrics func (histogram *HistogramData) Clear() { if histogram == nil { return