v3: remove newrelic config file in favour of env variables

This commit is contained in:
Matteo Pagliazzi
2016-05-11 11:43:50 +02:00
parent f46b336a1f
commit 0d4870b1e6
2 changed files with 1 additions and 22 deletions
+1
View File
@@ -20,6 +20,7 @@
"STRIPE_API_KEY":"aaaabbbbccccddddeeeeffff00001111",
"STRIPE_PUB_KEY":"22223333444455556666777788889999",
"NEW_RELIC_LICENSE_KEY":"NEW_RELIC_LICENSE_KEY",
"NEW_RELIC_NO_CONFIG_FILE":"true",
"NEW_RELIC_APPLICATION_ID":"NEW_RELIC_APPLICATION_ID",
"NEW_RELIC_API_KEY":"NEW_RELIC_API_KEY",
"GA_ID": "GA_ID",
-22
View File
@@ -1,22 +0,0 @@
'use strict';
// We can't rely on babel here
// because the file is requested directly by the new relic module
const nconf = require('nconf');
// IMPORTANT remember to set the location of this file using the NEW_RELIC_HOME env variable
// more info here https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration
exports.config = {
app_name: nconf.get('NEW_RELIC_APP_NAME'), // eslint-disable-line camelcase
license_key: nconf.get('NEW_RELIC_LICENSE_KEY'), // eslint-disable-line camelcase
logging: {
/**
* Level at which to log. 'trace' is most useful to New Relic when diagnosing
* issues with the agent, 'info' and higher will impose the least overhead on
* production applications.
*/
level: 'info',
},
};