From fbe7293f891dc8e4ce458bfb72c3b029a08810f7 Mon Sep 17 00:00:00 2001 From: Chris McAvoy Date: Tue, 26 Nov 2013 12:45:02 -0600 Subject: [PATCH] adding newrelic.js and several required config variables if you want to run new relic --- newrelic.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 newrelic.js diff --git a/newrelic.js b/newrelic.js new file mode 100644 index 0000000..bd64ac5 --- /dev/null +++ b/newrelic.js @@ -0,0 +1,27 @@ +/** + * New Relic agent configuration. + * + * See lib/config.defaults.js in the agent distribution for a more complete + * description of configuration variables and their potential values. + */ +var NEWRELIC_LICENSE = process.env('NEWRELIC_LICENSE'); +var NEWRELIC_APPNAME = process.env('NEWRELIC_APPNAME'); +exports.config = { + /** + * Array of application names. + */ + app_name : [NEWRELIC_APPNAME], + + /** + * Your New Relic license key. + */ + license_key : NEWRELIC_LICENSE, + 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 : 'trace' + } +};