ramn / metrics_cloudwatch

CloudWatch emitter for the metrics crate
7 stars 9 forks source link

fix: Spread each metrics batch out to reduce throttling #29

Closed Marwes closed 3 years ago

Marwes commented 3 years ago

By calculating how many requests we need and evenly spreading those requests out over the first half of the send interval (so we still send the metrics fairly quickly), we should reduce the risk of throttling due to bursting the requests to quickly after one another.