examples/express4-multi-process-js/src/metrics.js
async function carbonReporter (registry, tags) {
  const {
    CarbonMetricReporter
  } = require('inspector-carbon')

  const reporter = new CarbonMetricReporter({
    host: 'http://localhost/',
    log: null,
    minReportingTimeout: 30,
    reportInterval: 5000
  })

  reporter.setTags(tags)
  reporter.addMetricRegistry(registry)

  await reporter.start()

  return reporter
}
async function carbonReporter (registry, tags) {
  const {
    CarbonMetricReporter
  } = require('inspector-carbon')

  const reporter = new CarbonMetricReporter({
    host: 'http://localhost/',
    log: null,
    minReportingTimeout: 30,
    reportInterval: 5000
  })

  reporter.setTags(tags)
  reporter.addMetricRegistry(registry)

  await reporter.start()

  return reporter
}
async function carbonReporter ( registry , tags ) { const { CarbonMetricReporter } = require ( 'inspector-carbon' ) const reporter = new CarbonMetricReporter ( { host : 'http://localhost/' , log : null , minReportingTimeout : 30 , reportInterval : 5000 } ) reporter . setTags ( tags ) reporter . addMetricRegistry ( registry ) await reporter . start ( ) return reporter }
return reporter }
return reporter }