getsentry/sentry-cocoa

App Hang Report Allowlist

Closed this issue · 3 comments

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

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
}

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

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