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

Feature: Rate-Limiter Report #303

Open
SmartASCII opened this issue May 10, 2021 · 1 comment
Open

Feature: Rate-Limiter Report #303

SmartASCII opened this issue May 10, 2021 · 1 comment

Comments

@SmartASCII
Copy link

Is your feature request related to a problem? Please describe.

At peak times, I'm experiencing some issues with hitting my rate limit, but I'd like to have a way to figure out where my usage is coming from.

Describe the solution you'd like

It would be amazing if the twitch-js rate limiter would catalog usage and be able to report it when queried in order to save some headaches from going through everything manually!

@SmartASCII SmartASCII changed the title Rate-Limiter Report Feature: Rate-Limiter Report May 10, 2021
@marcandrews
Copy link
Member

We can add some timings to the trace output here:

this._log.trace(`< ${message}`)

... but since Chat.send is a promise, you can also wrap it with your own code to track how long it takes the promise to resolve.

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

2 participants