Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metric rack_attack_tracked_requests_total does not tracked in context of descriminator #3

Open
dsalahutdinov opened this issue Jun 4, 2021 · 1 comment

Comments

@dsalahutdinov
Copy link
Owner

Track with discriminator does not work:

Rack::Attack.track('user agent family') do |req|
  UserAgentParser.parse(req.user_agent).family
end

Metric rack_attack_tracked_requests_total does not tagged with discriminator

@dsalahutdinov
Copy link
Owner Author

Here is the commit for supporting this feature here.
And the pull-request to rack-attack gem for passing a discriminator to subscribers rack/rack-attack#548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant