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 Allowlist #3906

Closed
kingnight opened this issue Apr 26, 2024 · 3 comments
Closed

App Hang Report Allowlist #3906

kingnight opened this issue Apr 26, 2024 · 3 comments

Comments

@kingnight
Copy link

kingnight commented Apr 26, 2024

Problem Statement

Sentry App hang monitors whether there is an allowlist or denylist mechanism that can exclude certain classes of monitoring and do filter 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.

@philipphofmann philipphofmann changed the title App Hang Report whitelist App Hang Report Allowlist May 22, 2024
@philipphofmann
Copy link
Member

We don't see a high demand for this right now. You can use the workaround specified in #3906 (comment). We can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants