Skip to content
Snippets Groups Projects

monitoring: Fix rate limit monitoring

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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading