code: 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);
      });
    }
docs: Enables use of plugins to capture additional data for segments.
  @param {Array} plugins - A configurable subset of AWSXRay.plugins.
  @memberof AWSXRay
  @see AWSXRay.plugins