File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/node/src/integrations/http Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,11 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
175175 isolationScope . setTransactionName ( bestEffortTransactionName ) ;
176176
177177 if ( instrumentation . getConfig ( ) . trackIncomingRequestsAsSessions !== false ) {
178- recordRequestSession ( { requestIsolationScope : isolationScope , response } ) ;
178+ recordRequestSession ( {
179+ requestIsolationScope : isolationScope ,
180+ response,
181+ sessionFlushingDelayMS : instrumentation . getConfig ( ) . sessionFlushingDelayMS ?? 60_000 ,
182+ } ) ;
179183 }
180184
181185 return withIsolationScope ( isolationScope , ( ) => {
@@ -512,7 +516,7 @@ export function recordRequestSession({
512516 const timeout = setTimeout ( ( ) => {
513517 DEBUG_BUILD && logger . debug ( 'Sending request session aggregate due to flushing schedule' ) ;
514518 flushPendingClientAggregates ( ) ;
515- } , sessionFlushingDelayMS ?? 60_000 ) . unref ( ) ;
519+ } , sessionFlushingDelayMS ) . unref ( ) ;
516520 }
517521 }
518522 } ) ;
You can’t perform that action at this time.
0 commit comments