sails-hook-newrelic
v0.3.4
Published
Integrates newrelic with your Sails application
Readme
sails-hook-newrelic
Integrates newrelic with your Sails application
Install
Note: This library requires sails >= 0.11.0
npm install sails-hook-newrelicUsage
- Setup your newrelic connection in
config/newrelicfollowing the rules of newrelic package like:
module.exports.newrelic = {
app_name: ['your-app-name'],
license_key: 'your-license-key',
logging: {
level: 'warn', // can be error, warn, info, debug or trace
},
rules: {
ignore: ['^/socket.io/.*/xhr-polling']
}
};If you want to override the newrelic configs for the particular environment, add it in
config/<ENV>/newrelicorconfig/<ENV>orconfig/local.add the following line in the first line of your
app.js:
require('sails-hook-newrelic/register');License
MIT © Kiko Beats
