shn

sails-hook-newrelic

Integrates newrelic with your Sails application

Showing:

Popularity

Downloads/wk

80

GitHub Stars

25

Maintenance

Last Commit

4yrs ago

Contributors

5

Package

Dependencies

1

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100