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.
require
1 parent 8554dca commit 94ec1dfCopy full SHA for 94ec1df
packages/node/src/integrations/undici/index.ts
@@ -12,7 +12,6 @@ import {
12
import type { EventProcessor, Integration, Span } from '@sentry/types';
13
import {
14
LRUMap,
15
- dynamicRequire,
16
dynamicSamplingContextToSentryBaggageHeader,
17
generateSentryTraceHeader,
18
getSanitizedUrlString,
@@ -106,7 +105,7 @@ export class Undici implements Integration {
106
105
let ds: DiagnosticsChannel | undefined;
107
try {
108
// eslint-disable-next-line @typescript-eslint/no-var-requires
109
- ds = dynamicRequire(module, 'diagnostics_channel') as DiagnosticsChannel;
+ ds = require('diagnostics_channel') as DiagnosticsChannel;
110
} catch (e) {
111
// no-op
112
}
0 commit comments