Skip to content

fridaystreet/sails-hook-newrelic

 
 

Repository files navigation

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']
    }
  }
};
  1. add the following line in the first line of your app.js:
require('sails-hook-newrelic/register');

License

MIT © Kiko Beats

About

Integrates newrelic with your Sails application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.0%
  • Shell 19.0%