All SDKs
Electron
v@sentry/electron
Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.
Install
These official Sentry commands come from the AllStak-managed SDK catalog.
npm
npm install @sentry/electronpnpm
pnpm add @sentry/electronyarn
yarn add @sentry/electronQuick start
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "{{DSN}}",
environment: "production",
release: "[email protected]",
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
// Off by default. Enable only if you accept sending usernames,
// emails and IP addresses to your telemetry backend.
sendDefaultPii: false,
});
Sentry.captureException(new Error("hello from @sentry/browser"));