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',