Integrates newrelic with your Sails application
Note: This library requires sails >= 0.11.0
npm install sails-hook-newrelic- 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']
}
}
};- add the following line in the first line of your
app.js:
require('sails-hook-newrelic/register');MIT © Kiko Beats