Skip to content

Commit

Permalink
#316: Adds support for http/https APIs for node >= 10
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethaasan authored and nijotz committed Feb 21, 2020
1 parent 3078974 commit ee22e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrumentation/core/http.js
Expand Up @@ -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',
Expand Down

0 comments on commit ee22e79

Please sign in to comment.