Skip to content

Commit 00e202f

Browse files
committed
Use SlidingTimeWindowArray instead of using resetting ExpDecaySample for latency histograms
1 parent 852baee commit 00e202f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

metrics/sample.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ type Sample interface {
3333
}
3434

3535
func NewBoundedHistogramSample() Sample {
36-
return ResettingSample(
37-
NewExpDecaySample(1028, 0.015),
38-
)
36+
return NewSlidingTimeWindowArraySample(time.Minute * 1)
3937
}
4038

4139
// ExpDecaySample is an exponentially-decaying sample using a forward-decaying

0 commit comments

Comments
 (0)