Skip to content

Commit 0c7f97c

Browse files
author
Luca Forstner
committed
lint
1 parent d06262c commit 0c7f97c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type * as http from 'node:http';
33
import type { IncomingMessage, RequestOptions } from 'node:http';
44
import type * as https from 'node:https';
5-
import { EventEmitter } from 'node:stream';
5+
import type { EventEmitter } from 'node:stream';
66
import { VERSION } from '@opentelemetry/core';
77
import type { InstrumentationConfig } from '@opentelemetry/instrumentation';
88
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
@@ -509,10 +509,13 @@ export function recordRequestSession({
509509
DEBUG_BUILD && logger.debug('Sending request session aggregate due to client flush');
510510
flushPendingClientAggregates();
511511
});
512-
const timeout = setTimeout(() => {
513-
DEBUG_BUILD && logger.debug('Sending request session aggregate due to flushing schedule');
514-
flushPendingClientAggregates();
515-
}, sessionFlushingDelayMS ?? 60_000).unref();
512+
const timeout = setTimeout(
513+
() => {
514+
DEBUG_BUILD && logger.debug('Sending request session aggregate due to flushing schedule');
515+
flushPendingClientAggregates();
516+
},
517+
sessionFlushingDelayMS ?? 60_000,
518+
).unref();
516519
}
517520
}
518521
});

packages/node/test/integrations/request-session-tracking.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { EventEmitter } from 'stream';
2-
import { Client, Scope, ServerRuntimeClient, createTransport, withScope } from '@sentry/core';
2+
import { Scope, ServerRuntimeClient, createTransport, withScope } from '@sentry/core';
3+
import type { Client } from '@sentry/core';
34
import { recordRequestSession } from '../../src/integrations/http/SentryHttpInstrumentation';
45

56
jest.useFakeTimers();

0 commit comments

Comments
 (0)