Skip to content

Commit 94ec1df

Browse files
author
Luca Forstner
committed
fix(node): Use normal require call to import Undici
1 parent 8554dca commit 94ec1df

File tree

1 file changed

+1
-2
lines changed
  • packages/node/src/integrations/undici

1 file changed

+1
-2
lines changed

packages/node/src/integrations/undici/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
import type { EventProcessor, Integration, Span } from '@sentry/types';
1313
import {
1414
LRUMap,
15-
dynamicRequire,
1615
dynamicSamplingContextToSentryBaggageHeader,
1716
generateSentryTraceHeader,
1817
getSanitizedUrlString,
@@ -106,7 +105,7 @@ export class Undici implements Integration {
106105
let ds: DiagnosticsChannel | undefined;
107106
try {
108107
// eslint-disable-next-line @typescript-eslint/no-var-requires
109-
ds = dynamicRequire(module, 'diagnostics_channel') as DiagnosticsChannel;
108+
ds = require('diagnostics_channel') as DiagnosticsChannel;
110109
} catch (e) {
111110
// no-op
112111
}

0 commit comments

Comments
 (0)