Skip to content

Commit

Permalink
feat: enable sentry ANR (#8197)
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryYangxx authored Nov 26, 2024
1 parent bc8aa38 commit bb1dd84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/insomnia/src/main/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ export function initializeSentry() {
*/
shouldSend: () => enabled,
},
integrations: [
Sentry.anrIntegration({ captureStackTrace: true }),
],
});
}
3 changes: 3 additions & 0 deletions packages/insomnia/src/ui/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export function initializeSentry() {
// set 0.1 sample rate for traces, only send 10% of traces, and check whether the limit is exceeded
// https://konghq.sentry.io/settings/billing/overview/?category=transactions
tracesSampleRate: 0.1,
anrDetection: {
captureStackTrace: true,
},
});
Sentry.getCurrentScope().setUser(null);
}

0 comments on commit bb1dd84

Please sign in to comment.