File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
docs/platforms/javascript/guides/electron Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ import * as Sentry from "@sentry/electron/main";
91
91
Sentry .init ({
92
92
dsn: " ___PUBLIC_DSN___" ,
93
93
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 ,
98
98
/**
99
99
* Called before we attempt to send an envelope to Sentry.
100
100
*
@@ -119,6 +119,12 @@ Sentry.init({
119
119
* @returns Whether we should store the envelope in the queue
120
120
*/
121
121
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 ;
122
128
},
123
129
});
124
130
```
You can’t perform that action at this time.
0 commit comments