Skip to content

Commit d93c352

Browse files
author
Luca Forstner
committed
facepalm
1 parent 845e454 commit d93c352

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/node/src/integrations/http/SentryHttpInstrumentation.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)