Try adding newrelic logging

This commit is contained in:
Ben Gotow 2016-07-11 10:56:08 -07:00
parent 14b5bef0a7
commit 93189b0f22
4 changed files with 51 additions and 0 deletions

View file

@ -1,3 +1,5 @@
require('newrelic');
const Hapi = require('hapi');
const HapiSwagger = require('hapi-swagger');
const HapiBoom = require('hapi-boom-decorators')

View file

@ -0,0 +1,24 @@
/**
* 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.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: ['Nylas K2 API'],
/**
* Your New Relic license key.
*/
license_key: 'e232d6ccc786bd87aa72b86782439710162e3739',
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',
},
}

View file

@ -1,3 +1,4 @@
require('newrelic');
global.Promise = require('bluebird');
const {DatabaseConnector} = require(`nylas-core`)

View file

@ -0,0 +1,24 @@
/**
* 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.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: ['Nylas K2 Sync'],
/**
* Your New Relic license key.
*/
license_key: 'e232d6ccc786bd87aa72b86782439710162e3739',
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',
},
}