probes/https-outbound-probe.js
function(target, methodName, methodArgs, probeData, rc) {
        // If no callback has been used then end the metrics after returning from the method instead
        if (aspect.findCallbackArg(methodArgs) === undefined) {
          // Need to get request method and URL again
          var ri = getRequestItems(methodArgs[0]);
          // End metrics (no response available so pass empty object)
          that.metricsProbeEnd(probeData, ri.requestMethod, ri.urlRequested, {}, ri.headers);
          that.requestProbeEnd(probeData, ri.requestMethod, ri.urlRequested, {}, ri.headers);
        }
        return rc;
      }
function(target, methodName, methodArgs, probeData, rc) {
        // If no callback has been used then end the metrics after returning from the method instead
        if (aspect.findCallbackArg(methodArgs) === undefined) {
          // Need to get request method and URL again
          var ri = getRequestItems(methodArgs[0]);
          // End metrics (no response available so pass empty object)
          that.metricsProbeEnd(probeData, ri.requestMethod, ri.urlRequested, {}, ri.headers);
          that.requestProbeEnd(probeData, ri.requestMethod, ri.urlRequested, {}, ri.headers);
        }
        return rc;
      }
function ( target , methodName , methodArgs , probeData , rc ) { // If no callback has been used then end the metrics after returning from the method instead if ( aspect . findCallbackArg ( methodArgs ) === undefined ) { // Need to get request method and URL again var ri = getRequestItems ( methodArgs [ 0 ] ) ; // End metrics (no response available so pass empty object) that . metricsProbeEnd ( probeData , ri . requestMethod , ri . urlRequested , { } , ri . headers ) ; that . requestProbeEnd ( probeData , ri . requestMethod , ri . urlRequested , { } , ri . headers ) ; } return rc ; }
After 'https.request' function returns
After https . request function returns