I'm running this Node app on Heroku.
I've gone through the following steps:
Added the add-on to my application. Heroku added two env vars to my app, NEW_RELIC_LICENSE_KEY
and NEW_RELIC_LOG
. I added third one, NEW_RELIC_APP_NAME
.
Followed the instructions in the Heroku Dev Center and installed the newrelic module:
npm install newrelic --save
Committed and pushed the resulting change to package.json
.
(I've skipped copying newrelic.js
to the root because NewRelic does not mention it in their Heroku-specific docs and Heroku doesn't either.)
I still see no data in NewRelic. What am I missing?
Turns out: Yes, I did need to copy newrelic.js
and a change the server.js
to require('newrelic')
(see commit here).