From 3f80b6337811e870bec5ade840228844f5ad2d68 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 10 Sep 2024 14:08:43 +0200 Subject: [PATCH] fix: Electron offline transport options (#11230) --- .../platforms/javascript/guides/electron/index.mdx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/platforms/javascript/guides/electron/index.mdx b/docs/platforms/javascript/guides/electron/index.mdx index 34ff3d98d8d69..9795f30444f4d 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; }, }); ```