API Reference logger_sentry v0.8.0-rc4
Modules
This module is the sentry backend for Logger and it can handle the event
message from the Logger
event server and push the log message to the sentry
dashboard.
Default fingerprints.
Default fingerprints from code location.
Default fingerprints from match error message.
The top-level logic for rate limiting requests. Must be given a LoggerSentry.RateLimiter.Strategy to provide the details of the actual rate-limiting algorithm. The algorithm is specified by the application config. The following example sets a rate limit of 20 requests per minute using the token bucket algorithm.
A struct holding common data for rate-limiting strategies.
The module
must be the name of a module that conforms to the
LoggerSentry.RateLimiter
behaviour. The state
may be used
however the module sees fit.
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.
Generate options for sentry.