-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Feature Request: As part of the response return the total number of attempts #56
Comments
|
@knadh I don't believe Remaining returns negative values. E.g If the limit is to 10 per minute and an attempt is made it goes down to 9. If 9 more attempts are made it goes down to 0. If 10 more attempts are made after the limit is hit I believe it stays at 0 and doesn't go to -10 and thus we can't know that the user made 10 additional attempts during that session only that they are rate limited for that session/duration. I could be wrong about Remaining not going into the negatives so that is something I will check. |
@knadh confirming that the number of attempts passed a limits is not tracked. Here I set the limit to be 10/min. You can see that after the limit is reached 0 is returned the entire time.
Looking at the package i'm using it may be that it Allowed was later updated from a bool to an int as i'm using v8.0.0 Confirming that even after updating the fields do not return a count for the number of requests past the limit
|
@marcsantiago Did you mean failed requests count counted from first time rejected, right? |
The current structure is
It would be nice if the structure also returned the number of attempts that were made e.g
This would allow for more robust logging around user behavior to very easily change limit values to suit the applications needs. Obviously this would also require a change to the lua script to track that...
The text was updated successfully, but these errors were encountered: