From ee22e7987b577bf0201c21ababf09e66e5c9c3e2 Mon Sep 17 00:00:00 2001 From: Kenneth Aasan Date: Mon, 10 Feb 2020 15:23:42 -0800 Subject: [PATCH] #316: Adds support for http/https APIs for node >= 10 --- lib/instrumentation/core/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/instrumentation/core/http.js b/lib/instrumentation/core/http.js index 28ed206947..e57b0e64ff 100644 --- a/lib/instrumentation/core/http.js +++ b/lib/instrumentation/core/http.js @@ -508,7 +508,7 @@ module.exports = function initialize(agent, http, moduleName) { // change originally also appeared in 8.9.0 but was reverted in 8.9.1. // // TODO: Remove `SHOULD_WRAP_HTTPS` after deprecating Node <9. - if (SHOULD_WRAP_HTTPS) { + if (SHOULD_WRAP_HTTPS || (!SHOULD_WRAP_HTTPS && !IS_HTTPS)) { shimmer.wrapMethod( http, 'http',