enableAppHangTracking
for JavaScript
#8530
p-himik
started this conversation in
Features / New SDKs (Integrations) / Ideas
Replies: 1 comment
-
Hey @p-himik, thanks for writing in!
The challenge here is we need to make sure a similar approach does not lead too much backpressure on the event loop (essentially the tracking causing issues on the main thread). I do think this is doable though, but backlogging this as we have other priorities. PRs are welcome if anyone would like to help build this for us! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions