0.3.4 • Published 7 years ago

sails-hook-newrelic v0.3.4

Weekly downloads
128
License
MIT
Repository
github
Last release
7 years ago

sails-hook-newrelic

Build Status Dependency status Dev Dependencies Status NPM Status Gittip

Integrates newrelic with your Sails application

Install

Note: This library requires sails >= 0.11.0

npm install sails-hook-newrelic

Usage

1) Setup your newrelic connection in config/newrelic following 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']
  }
};

2) If you want to override the newrelic configs for the particular environment, add it in config/<ENV>/newrelic or config/<ENV> or config/local.

3) add the following line in the first line of your app.js:

require('sails-hook-newrelic/register');

License

MIT © Kiko Beats

0.3.4

7 years ago

0.3.2

8 years ago

0.3.0

8 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago