Skip to content

Commit

Permalink
Document electron main process integration sendOnCreate (#7639)
Browse files Browse the repository at this point in the history
Co-authored-by: vivianyentran <[email protected]>
  • Loading branch information
AbhiPrasad and vivianyentran authored Aug 15, 2023
1 parent 2119ec0 commit 18ceb22
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit 18ceb22

Please sign in to comment.