Skip to content

How can we add wildcard to disable all sentry events in InAppExclude ? #3580

Answered by romtsn
kikmak42 asked this question in Q&A
Discussion options

You must be logged in to vote

hi, sorry I'm not sure I got your problem exactly - would you like to filter out some certain sentry events? inAppExclude is not meant for that, it's meant for marking some stackframes as in-app or not, but not really for filtering out the events.

If you would like some events to be dropped, you can use as mentioned here, but check for events from the lib that you'd like to capture:

SentryAndroid.init(context) { options ->
    options.beforeSend = SentryOptions.BeforeSendCallback { event, hint ->
      if (event.exceptions?.any { exception ->
          exception.stacktrace?.frames?.any { frame -> frame.module?.startsWith("com.example.lib") == true } == true
        } == true) {
        re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kikmak42
Comment options

@kikmak42
Comment options

Answer selected by kikmak42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants