Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Hang Report whitelist #3906

Open
kingnight opened this issue Apr 26, 2024 · 2 comments
Open

App Hang Report whitelist #3906

kingnight opened this issue Apr 26, 2024 · 2 comments

Comments

@kingnight
Copy link

Problem Statement

Sentry App hang monitors whether there is a whitelist or blacklist mechanism that can exclude certain classes of monitoring and do filtered reporting

Solution Brainstorm

No response

Are you willing to submit a PR?

No response

@philipphofmann
Copy link
Member

No there isn't an allow or denylist for app hang reports, but you can use beforeSend to filter out unwanted app hang events:

options.beforeSend = { event in
    if (event.exceptions?.first?.type == "App Hanging") {
        // do your stuff
    }
    
    return event
}

@philipphofmann
Copy link
Member

PR for updating the docs getsentry/sentry-docs#9822.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Needs Discussion
Development

No branches or pull requests

2 participants