MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / flushWithBackOff

Function flushWithBackOff

packages/core/src/transports/offline.ts:122–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 function flushWithBackOff(): void {
123 if (flushTimer) {
124 return;
125 }
126
127 flushIn(retryDelay);
128
129 retryDelay = Math.min(retryDelay * 2, MAX_DELAY);
130 }
131
132 async function send(envelope: Envelope, isRetry: boolean = false): Promise<TransportMakeRequestResponse> {
133 // We queue all replay envelopes to avoid multiple replay envelopes being sent at the same time. If one fails, we

Callers 2

sendFunction · 0.85
makeOfflineTransportFunction · 0.85

Calls 1

flushInFunction · 0.85

Tested by

no test coverage detected