sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Uncaught exceptions do not go through BeforeSendCallback on Android

Open jhowens89 opened this issue 1 year ago • 1 comments

Integration

sentry-android

Build System

Gradle

AGP Version

8.2.2

Proguard

Enabled

Version

7.8.0

Steps to Reproduce

Initialize a BeforeSendCallback that logs exceptions. Manually throw an exception. Notice that callback is never invoked with the exception.

Expected Result

BeforeSendCallback is invoked with uncaught exception.

Actual Result

BeforeSendCallback is not invoked with uncaught exception.

jhowens89 avatar Apr 25 '24 23:04 jhowens89

Hey @jhowens89, thanks for reaching out. Could you share a few code snippets on how you initialize the SDK?

Enabling debug mode via options.setDebug should be a good first start, the logcat output should contain some valuable information in case events get dropped.

markushi avatar Apr 29 '24 13:04 markushi

@jhowens89 did you have any chance to look into this?

markushi avatar May 08 '24 12:05 markushi

@jhowens89 we're closing this for now, if still think there's an issue feel free to add a comment with some more details and we'll re-open this ticket.

markushi avatar May 29 '24 12:05 markushi