@@ -4,6 +4,7 @@ import { getIsolationScope } from './currentScopes';
44import { DEBUG_BUILD } from './debug-build' ;
55import type { Scope } from './scope' ;
66import { registerSpanErrorInstrumentation } from './tracing' ;
7+ import { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base' ;
78import { addUserAgentToTransportHeaders } from './transports/userAgent' ;
89import type { CheckIn , MonitorConfig , SerializedCheckIn } from './types-hoist/checkin' ;
910import type { Event , EventHint } from './types-hoist/event' ;
@@ -14,7 +15,7 @@ import type { BaseTransportOptions, Transport } from './types-hoist/transport';
1415import { debug } from './utils/debug-logger' ;
1516import { eventFromMessage , eventFromUnknownInput } from './utils/eventbuilder' ;
1617import { uuid4 } from './utils/misc' ;
17- import type { PromiseBuffer } from './utils/promisebuffer' ;
18+ import { makePromiseBuffer } from './utils/promisebuffer' ;
1819import { resolvedSyncPromise } from './utils/syncpromise' ;
1920import { _getTraceInfoFromScope } from './utils/trace-info' ;
2021
@@ -176,7 +177,7 @@ export class ServerRuntimeClient<
176177 this . _integrations = { } ;
177178 this . _outcomes = { } ;
178179 ( this as unknown as { _transport ?: Transport } ) . _transport = undefined ;
179- ( this as unknown as { _promiseBuffer ?: PromiseBuffer < unknown > } ) . _promiseBuffer = undefined ;
180+ this . _promiseBuffer = makePromiseBuffer ( DEFAULT_TRANSPORT_BUFFER_SIZE ) ;
180181 }
181182
182183 /**
0 commit comments