apm-app.js

Answer

//  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,
}

All 2d Questions

Ask your interview questions on 2d

Write Your comment or Questions if you want the answers on 2d from 2d Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---