Skip to content

App Hangs - Be able to attach Main thread stack trace to non fatal app hangsΒ #7046

@Angelodaniel

Description

@Angelodaniel

Problem Statement

Sentry's non-fatal error reporting for app hangs only captures the stack trace of the calling thread, not the main thread, which is crucial for debugging app hangs.

So it only captures the stack trace of that specific thread but it would be beneficial to have it from the main thread.

Right now customer has forked their own SDK version but I'd like to remove the need.

Solution Brainstorm

Customer has added a boolean flag attachMainStackTrace which let them decide if they either call getCurrentThreads or getCurrentThreadsWithStackTrace for non fatal ANR's

Are you willing to submit a PR?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions