We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe974e1 commit ed528a6Copy full SHA for ed528a6
packages/tracer/src/provider/ProviderService.ts
@@ -29,6 +29,8 @@ import {
29
isHttpSubsegment,
30
} from './utilities.js';
31
import type { DiagnosticsChannel } from 'undici-types';
32
+import http from 'node:http';
33
+import https from 'node:https';
34
35
class ProviderService implements ProviderServiceInterface {
36
/**
@@ -70,10 +72,8 @@ class ProviderService implements ProviderServiceInterface {
70
72
}
71
73
74
public captureHTTPsGlobal(): void {
- // eslint-disable-next-line @typescript-eslint/no-var-requires
- captureHTTPsGlobal(require('http'));
75
76
- captureHTTPsGlobal(require('https'));
+ captureHTTPsGlobal(http);
+ captureHTTPsGlobal(https);
77
78
79
public getNamespace(): Namespace {
0 commit comments