Skip to content

Commit 721b5ed

Browse files
committed
fix: Proxy for o11y
1 parent 59679ad commit 721b5ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/testObservability/helper/helper.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ const nodeRequest = (type, url, data, config) => {
130130
...config.headers
131131
}
132132
};
133-
133+
134+
if(process.env.HTTP_PROXY){
135+
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
136+
137+
} else if (process.env.HTTPS_PROXY){
138+
options.config.httpAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
139+
}
134140
if(url === exports.requestQueueHandler.screenshotEventUrl) {
135141
options.agent = httpsScreenshotsKeepAliveAgent;
136142
}

0 commit comments

Comments
 (0)