Add Newrelic instrumentation configuration file

This commit is contained in:
Fabiano Martins 2025-02-04 23:40:09 -03:00
parent 287f04116c
commit a8f9ab634a

22
newrelic.js Normal file
View File

@ -0,0 +1,22 @@
exports.config = {
app_name: ['Staging Evolution API'],
license_key: process.env.NEW_RELIC_LICENSE_KEY,
logging: {
level: 'trace'
},
allow_all_headers: true,
attributes: {
exclude: [
'request.headers.cookie',
'request.headers.authorization',
'request.headers.proxyAuthorization',
'request.headers.setCookie*',
'request.headers.x*',
'response.headers.cookie',
'response.headers.authorization',
'response.headers.proxyAuthorization',
'response.headers.setCookie*',
'response.headers.x*'
]
}
}