sentry-electron-opt-out
A means of opting-out of error reporting from any process
Automated client side error reporting is a great way to fix issues without intervention from users. Some users still insist on opting-out of this 🤷.
Example usage
Run the following code in both Electron processes:
;; Sentry.init;
To query or change the state of error reporting, use the following code in any Electron process:
; // Check if reporting is enabled; // Disable error reportingawait setEnabledfalse;
You can optionally pass a function which can force error reporting to be enabled. Perhaps this is a pre-requisite to using pre-release versions of you app?
// constructor(forceEnabled?: () => Promise<boolean>) { // Example; Sentry.init;