code: function captureHTTPs(module, downstreamXRayEnabled) {
    if (module.__request)
      return module;
  
    var tracedModule = {};
  
    Object.keys(module).forEach(function(val) {
      tracedModule[val] = module[val];
    });
  
    enableCapture(tracedModule, downstreamXRayEnabled);
    return tracedModule;
  }
docs: Wraps the http/https.request() and .get() calls to automatically capture information for the segment.
  Returns an instance of the HTTP or HTTPS module that is patched.
  @param {http|https} module - The built in Node.js HTTP or HTTPS module.
  @param {boolean} downstreamXRayEnabled - when true, adds a "traced:true" property to the subsegment
  so the AWS X-Ray service expects a corresponding segment from the downstream service.
  @alias module:http_p.captureHTTPs
  @returns {http|https}