Skip to content

Commit 3f80b63

Browse files
authored
fix: Electron offline transport options (#11230)
1 parent 7bf41db commit 3f80b63

File tree

1 file changed

+10
-4
lines changed
  • docs/platforms/javascript/guides/electron

1 file changed

+10
-4
lines changed

docs/platforms/javascript/guides/electron/index.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ import * as Sentry from "@sentry/electron/main";
9191
Sentry.init({
9292
dsn: "___PUBLIC_DSN___",
9393
transportOptions: {
94-
/* The maximum number of days to keep an event in the queue. */
95-
maxQueueAgeDays: 30,
96-
/* The maximum number of events to keep in the queue. */
97-
maxQueueCount: 30,
94+
/* The maximum number of days to keep an envelope in the queue. */
95+
maxAgeDays: 30,
96+
/* The maximum number of envelopes to keep in the queue. */
97+
maxQueueSize: 30,
9898
/**
9999
* Called before we attempt to send an envelope to Sentry.
100100
*
@@ -119,6 +119,12 @@ Sentry.init({
119119
* @returns Whether we should store the envelope in the queue
120120
*/
121121
shouldStore: (envelope: Envelope, error: Error, retryDelay: number) => boolean | Promise<boolean>;
122+
/**
123+
* Should the offline store flush shortly after startup.
124+
*
125+
* Defaults: false
126+
*/
127+
flushAtStartup: false;
122128
},
123129
});
124130
```

0 commit comments

Comments
 (0)