Skip to content

Have Sentry detect when a promise never resolves #9319

@AbhiPrasad

Description

@AbhiPrasad

Problem Statement

Have sentry detect when a promise never resolves and give the stacktrace to where the promise was created.

Can maybe be done with async context, and can use v8 inspector API to get stacktrace.

Solution Brainstorm

Something like https://github.com/gajus/timeout-idle-promise?

We'd need to find a way to filter out intentionally unresolved promises (we use this technique for the ANR watchdog child process).

Maybe we can also look at open handles?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions