packages/core/lib/aws-xray.js
function(plugins) {
    var pluginData = {};
    plugins.forEach(function(plugin) {
      plugin.getData(function(data) {
        if (data) {
          for (var attribute in data) { pluginData[attribute] = data[attribute]; }
        }
      });
      segmentUtils.setOrigin(plugin.originName);
      segmentUtils.setPluginData(pluginData);
    });
  }
function(plugins) {
    var pluginData = {};
    plugins.forEach(function(plugin) {
      plugin.getData(function(data) {
        if (data) {
          for (var attribute in data) { pluginData[attribute] = data[attribute]; }
        }
      });
      segmentUtils.setOrigin(plugin.originName);
      segmentUtils.setPluginData(pluginData);
    });
  }
function ( plugins ) { var pluginData = { } ; plugins . forEach ( function ( plugin ) { plugin . getData ( function ( data ) { if ( data ) { for ( var attribute in data ) { pluginData [ attribute ] = data [ attribute ] ; } } } ) ; segmentUtils . setOrigin ( plugin . originName ) ; segmentUtils . setPluginData ( pluginData ) ; } ) ; }
Enables use of plugins to capture additional data for segments.
@param {Array} plugins - A configurable subset of AWSXRay.plugins.
@memberof AWSXRay
@see AWSXRay.plugins
Enables use of plugins to capture additional data for segments .