lib/index.js
function shipMetrics (metric) {
    try {
      this.emit('metric', metric)
      this.spmSender.collectMetric(metric)
    } catch (ex) {
      logger.error('Error in shipMetrics' + ex.stack)
    }
  }
function shipMetrics (metric) {
    try {
      this.emit('metric', metric)
      this.spmSender.collectMetric(metric)
    } catch (ex) {
      logger.error('Error in shipMetrics' + ex.stack)
    }
  }
function shipMetrics ( metric ) { try { this . emit ( 'metric' , metric ) this . spmSender . collectMetric ( metric ) } catch ( ex ) { logger . error ( 'Error in shipMetrics' + ex . stack ) } }
Event listener method for metrics, pushing metrics to spmsender module
@param {Object} metric  Object
Event listener method for metrics pushing metrics to spmsender module