// elastic-apm setup
// Add this to the VERY top of the first file loaded in your app
// https://www.elastic.co/guide/en/apm/agent/nodejs/2.x/configuration.html
const options = require('./config/config').elasticapmnode
const apm = require('elastic-apm-node').start(options)
apm.addFilter((payload) => {
payload.labels = options.globalLabels
// remember to return the modified payload
return payload
})
module.exports = {
apm,
}