-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANR only sends one event #11160
Comments
Hey @timfish / Sentry team! Could you clarify this part please? "Currently the ANR feature only sends a single event and exits." |
It's currently one event per Node process. I can add an options to lift this limit but there's no easy way to have this per session. We fetch context (scope, user, tags, etc) from the app thread but we can only do that if it becomes unblocked. If the event loops blocks for more than 5 seconds we give up fetching the extra context and send the event without it. |
We're using ANR (with a relatively low threshold of 500ms) to diagnose event loop lags in our NodeJS server, and often get an ANR event during startup while Node is compiling stuff... Which means we never get an ANR event afterwards during the actual event loop stall events 😅 So lifting this limitation (or alternatively adding an option to only start the pings after a given duration) would be super useful! |
Thanks for the ping. I'll look into this next week! |
Problem Statement
Currently the ANR feature only sends a single event and exits.
Solution Brainstorm
We chose to do this because:
The text was updated successfully, but these errors were encountered: