Skip to content

Commit

Permalink
add anr reports in sentry
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Mar 13, 2024
1 parent 38f34ad commit 62787cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/org/dhis2/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public void initCrashController() {
if (areTrackingPermissionGranted()) {
SentryAndroid.init(this, options -> {
options.setDsn(BuildConfig.SENTRY_DSN);
options.setAnrReportInDebug(true);

// Add a callback that will be used before the event is sent to Sentry.
// With this callback, you can modify the event or, when returning null, also discard the event.
Expand Down

0 comments on commit 62787cb

Please sign in to comment.