Skip to content

monitoring: Fix rate limit monitoring

Administrator requested to merge ratelimit-fixes into main

Created by: ryanslade

Keep correct resource when using WithAuthenticator

Don't iterate over map when setting collector functions. It caused us to pick one resource at random based on the order the map was iterated over and record all operations against it.

Here's a Go playground showing the issue: https://play.golang.org/p/3d5YThVmErr

Merge request reports

Loading