diff --git a/src/platforms/javascript/guides/electron/configuration/integrations/default.mdx b/src/platforms/javascript/guides/electron/configuration/integrations/default.mdx index 7d1688f8dbbd3..7d8f9df74af72 100644 --- a/src/platforms/javascript/guides/electron/configuration/integrations/default.mdx +++ b/src/platforms/javascript/guides/electron/configuration/integrations/default.mdx @@ -226,6 +226,17 @@ Sentry.init({ }); ``` +The default behavior is to only send sessions on error or when the main process ends. To send sessions when the main process is created, enable the `sendOnCreate` option. + +``` +import * as Sentry from "@sentry/electron"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [new Sentry.Integrations.MainProcessSession({ sendOnCreate: true })] +}); +``` + ## Renderer Process ### `ScopeToMain`