Get notified when rate-limit kick in Sentry SDK

In Sentry’s elixir SDK we have a rate limit option for logger handlers to prevent spam logs.

I am interested in knowing when the rate-limit kicks in so that I can tweak it.
AFAIK logs are skipped silently.

Any suggestions?

I am using logger handlers to report :error level logs to Sentry

Looking at this source:

There does not seem to be a way to configure a callback to get notified when rate limit is triggered. You could offer them a PR where configuration allows something like rate_limit_callback or just a sub-key inside their rate_limit key that could be called callback or send_message_to etc. (in case you don’t want a function / MFA but an actual process to send message to) and can then extend the linked code above to act on a rate limit being triggered.

1 Like

thanks, i’ll take a dig at it.