View Source LoggerSentry.RateLimiter.TokenBucket (logger_sentry v0.8.0-rc6)

An implementation of a token bucket rate-limiting strategy. Essentially, in some time period (ex. one minute), there are X number of tokens available. One request consumes one token. If no tokens, then no more requests may run. After the time interval has elapsed, the token count is restored to max.