Problem Statement
Since JS in browsers is single-threaded, it's not that hard to make it get stuck in a busy loop without Sentry reporting it.
The React Native version of Sentry has an integration for app hang detection: https://docs.sentry.io/platforms/react-native/configuration/app-hangs/
Perhaps something similar can be added for the JS version?
Solution Brainstorm
AFAICT, Sentry already uses workers, so maybe such a feature can be implemented by periodically pinging a worker and triggering an error if the worker doesn't receive pings for some configurable amount of time.
Problem Statement
Since JS in browsers is single-threaded, it's not that hard to make it get stuck in a busy loop without Sentry reporting it.
The React Native version of Sentry has an integration for app hang detection: https://docs.sentry.io/platforms/react-native/configuration/app-hangs/
Perhaps something similar can be added for the JS version?
Solution Brainstorm
AFAICT, Sentry already uses workers, so maybe such a feature can be implemented by periodically pinging a worker and triggering an error if the worker doesn't receive pings for some configurable amount of time.