You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry's ANR feature thinks that the application is the ANR watchdog child (because the process has been forked by PM2 and therefore has a process.send), so it doesn't work. (In my local testing, it causes PM2 to treat the process as terminated by SIGINT.)
I could provide a separate entryScript, but that wouldn't help the issue of the parent process thinking it's the child. I think I could delete process.send, but that seems like a hack (and can break PM2 features). Maybe enableAnrDetection needs some sort of "force" parameter? Maybe it should assume it's the parent (ignoring process.send) if an entryScript is provided and/or if entryScript !== process.arg[1]?
The text was updated successfully, but these errors were encountered:
Hey @joshkel - thanks for writing in! Your GitHub issue led us to make a bunch of improvements to the ANR tracking in #9128, so appreciate the feedback a lot.
Will update once we've released those improvements. Thanks!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.72.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Enable the new Application Not Responding feature:
Configure the application to run within PM2.
Expected Result
The application works.
Actual Result
Sentry's ANR feature thinks that the application is the ANR watchdog child (because the process has been forked by PM2 and therefore has a
process.send
), so it doesn't work. (In my local testing, it causes PM2 to treat the process as terminated by SIGINT.)I could provide a separate
entryScript
, but that wouldn't help the issue of the parent process thinking it's the child. I think I coulddelete process.send
, but that seems like a hack (and can break PM2 features). MaybeenableAnrDetection
needs some sort of "force" parameter? Maybe it should assume it's the parent (ignoringprocess.send
) if anentryScript
is provided and/or ifentryScript !== process.arg[1]
?The text was updated successfully, but these errors were encountered: