v3: remove newrelic config file in favour of env variables
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user