Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down