Install the sentry Electron SDK:
npm install @sentry/electron
Initialize the SDK in both your main process and every renderer process:
import * as Sentry from "@sentry/electron";
Sentry.init({
dsn: "YOUR_DSN",
autoSessionTracking: false, // GlitchTip does not support sessions
});
Verify your setup:
myUndefinedFunction();
Test this in both your main and renderer processes to verify the SDK is operational in both.