We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06b502 commit dcdb113Copy full SHA for dcdb113
packages/node/src/handlers.ts
@@ -433,7 +433,8 @@ export function requestHandler(
433
const client = currentHub.getClient<NodeClient>();
434
if (isAutoSessionTrackingEnabled(client)) {
435
setImmediate(() => {
436
- if (client) {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
437
+ if (client && (client as any)._captureRequestSession) {
438
// Calling _captureRequestSession to capture request session at the end of the request by incrementing
439
// the correct SessionAggregates bucket i.e. crashed, errored or exited
440
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
0 commit comments