I want to integrate Newrelic for my Typescript NodeJs Express Application, I have done these changes
to install newrelic
npm install newrelic // to install newrelic
Added a file named newrelic.js outside src folder like this
'use strict'
exports.config = {
app_name: ['App Name'],
license_key: 'xxxx',
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*'
]
}
}
with the correct app name and license_key. And added
import newrelic from 'newrelic';
at the start of my index.ts file (which is the start of my application). And I am using ts-node to start up my application like
ts-node src/index.ts
I am not seeing any data on my newrelic dashboard. I tried searching newrelic for typescript nodejs express app but found nothing that will help.
Is something wrong here?