diff --git a/docs/platforms/javascript/guides/electron/index.mdx b/docs/platforms/javascript/guides/electron/index.mdx index 34ff3d98d8d696..9795f30444f4da 100644 --- a/docs/platforms/javascript/guides/electron/index.mdx +++ b/docs/platforms/javascript/guides/electron/index.mdx @@ -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. * @@ -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; + /** + * Should the offline store flush shortly after startup. + * + * Defaults: false + */ + flushAtStartup: false; }, }); ```