HarshBalyan
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
Most Liked
dimitarvp
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.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









