Skip to content

enableAppHangTracking for JavaScript #8521

@p-himik

Description

@p-himik

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.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions