Skip to content

Commit

Permalink
fix: Electron offline transport options (#11230)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish authored Sep 10, 2024
1 parent 7bf41db commit 3f80b63
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/platforms/javascript/guides/electron/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ import * as Sentry from "@sentry/electron/main";
Sentry.init({
dsn: "___PUBLIC_DSN___",
transportOptions: {
/* The maximum number of days to keep an event in the queue. */
maxQueueAgeDays: 30,
/* The maximum number of events to keep in the queue. */
maxQueueCount: 30,
/* The maximum number of days to keep an envelope in the queue. */
maxAgeDays: 30,
/* The maximum number of envelopes to keep in the queue. */
maxQueueSize: 30,
/**
* Called before we attempt to send an envelope to Sentry.
*
Expand All @@ -119,6 +119,12 @@ Sentry.init({
* @returns Whether we should store the envelope in the queue
*/
shouldStore: (envelope: Envelope, error: Error, retryDelay: number) => boolean | Promise<boolean>;
/**
* Should the offline store flush shortly after startup.
*
* Defaults: false
*/
flushAtStartup: false;
},
});
```
Expand Down

0 comments on commit 3f80b63

Please sign in to comment.