slok / goresilience

A library to improve the resilience of Go applications in an easy and flexible way
https://medium.com/@slok/goresilience-a-go-library-to-improve-applications-resiliency-14d229aee385
Apache License 2.0
179 stars 24 forks source link

Refactor codel queue stats #15

Closed slok closed 5 years ago

slok commented 5 years ago

Before the dynamic queue stats only recorded when was the last time the queue was empty, the way it measured this wasn't reliable.

Now it tracks the events of incrementing and decrementing and when they occur it checks if the queue is empty to set the last time the queue was empty.

Also: