File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/browser/src/transports Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11import type { Transport , TransportMakeRequestResponse , TransportRequest } from '@sentry/core' ;
2- import { createTransport } from '@sentry/core' ;
2+ import { createTransport , makePromiseBuffer } from '@sentry/core' ;
33import { clearCachedImplementation , getNativeImplementation } from '@sentry-internal/browser-utils' ;
44import type { WINDOW } from '../helpers' ;
55import type { BrowserTransportOptions } from './types' ;
66
7+ const DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE = 40 ;
8+
79/**
810 * Creates a Transport that uses the Fetch API to send events to Sentry.
911 */
@@ -59,5 +61,9 @@ export function makeFetchTransport(
5961 }
6062 }
6163
62- return createTransport ( options , makeRequest ) ;
64+ return createTransport (
65+ options ,
66+ makeRequest ,
67+ makePromiseBuffer ( options . bufferSize || DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE ) ,
68+ ) ;
6369}
You can’t perform that action at this time.
0 commit comments