File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/tracer/src/provider Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import {
29
29
isHttpSubsegment ,
30
30
} from './utilities.js' ;
31
31
import type { DiagnosticsChannel } from 'undici-types' ;
32
+ import http from 'node:http' ;
33
+ import https from 'node:https' ;
32
34
33
35
class ProviderService implements ProviderServiceInterface {
34
36
/**
@@ -70,10 +72,8 @@ class ProviderService implements ProviderServiceInterface {
70
72
}
71
73
72
74
public captureHTTPsGlobal ( ) : void {
73
- // eslint-disable-next-line @typescript-eslint/no-var-requires
74
- captureHTTPsGlobal ( require ( 'http' ) ) ;
75
- // eslint-disable-next-line @typescript-eslint/no-var-requires
76
- captureHTTPsGlobal ( require ( 'https' ) ) ;
75
+ captureHTTPsGlobal ( http ) ;
76
+ captureHTTPsGlobal ( https ) ;
77
77
}
78
78
79
79
public getNamespace ( ) : Namespace {
You can’t perform that action at this time.
0 commit comments