rollcage icon indicating copy to clipboard operation
rollcage copied to clipboard

Feature request: limit items per minute

Open firthh opened this issue 5 years ago • 1 comments

The official NodeJS Rollbar client supports itemsPerMinute as configuration (https://docs.rollbar.com/docs/rollbarjs-configuration-reference#section-global). It would be nice if this supported something similar.

I realise this might make the library a bit more stateful but it could be beneficial for when things go catastrophically wrong like infinite loops.

firthh avatar Aug 05 '19 07:08 firthh

Hi Hugo,

Thanks for logging the issue.

We usually do this at CircleCI by putting a rate limit on the token itself in the Rollbar UI. This allows us to set a max number of items that can be reported at a time, but it’s handled server side.

Would that solve your use-case?

Another neat way to do this simply would be to wrap the reporting function with a throttled version of the function. Do you know any neat libraries that add throttling to a var? I’ve done this with underscore.js I’m the past I’m JavaScript. I don’t know of any Clojure libraries that do the same.

marcomorain avatar Aug 07 '19 21:08 marcomorain