probes/http-outbound-probe.js
function(obj, methodName, methodArgs, probeData) {
        // Start metrics
        that.metricsProbeStart(probeData);
        that.requestProbeStart(probeData);
        // End metrics
        aspect.aroundCallback(
          methodArgs,
          probeData,
          function(target, args, probeData) {
            // Get HTTP request method from options
            var ri = getRequestItems(methodArgs[0]);
            that.metricsProbeEnd(probeData, ri.requestMethod, ri.urlRequested, args[0], ri.headers);
            that.requestProbeEnd(probeData, ri.requestMethod, ri.urlRequested, args[0], ri.headers);
          },
          function(target, args, probeData, ret) {
            // Don't need to do anything after the callback
            return ret;
          }
        );
      }
function(obj, methodName, methodArgs, probeData) {
        // Start metrics
        that.metricsProbeStart(probeData);
        that.requestProbeStart(probeData);
        // End metrics
        aspect.aroundCallback(
          methodArgs,
          probeData,
          function(target, args, probeData) {
            // Get HTTP request method from options
            var ri = getRequestItems(methodArgs[0]);
            that.metricsProbeEnd(probeData, ri.requestMethod, ri.urlRequested, args[0], ri.headers);
            that.requestProbeEnd(probeData, ri.requestMethod, ri.urlRequested, args[0], ri.headers);
          },
          function(target, args, probeData, ret) {
            // Don't need to do anything after the callback
            return ret;
          }
        );
      }
function ( obj , methodName , methodArgs , probeData ) { // Start metrics that . metricsProbeStart ( probeData ) ; that . requestProbeStart ( probeData ) ; // End metrics aspect . aroundCallback ( methodArgs , probeData , function ( target , args , probeData ) { // Get HTTP request method from options var ri = getRequestItems ( methodArgs [ 0 ] ) ; that . metricsProbeEnd ( probeData , ri . requestMethod , ri . urlRequested , args [ 0 ] , ri . headers ) ; that . requestProbeEnd ( probeData , ri . requestMethod , ri . urlRequested , args [ 0 ] , ri . headers ) ; } , function ( target , args , probeData , ret ) { // Don't need to do anything after the callback return ret ; } ) ; }
Before 'http.request' function
Before http . request function