sails-hook-opbeat

    1.0.3 • Public • Published

    Opbeat hook for Sails.js

    Installation

    To install Opbeat hook follow this simaple steps:

    • Install hook via npm npm install --save sails-hook-opbeat
    • Configure hook [See configuration section][1]
    • Add this following line in the first line of your app.js: require('sails-hook-opbeat/register');

    [1]: Configuration

    List of available options for Opbeat hook you could see here: Opbeat configuration

    Create a config file config/opbeat.js with this content:

     
    module.exports.opbeat = {
     
      /**
       * Your Opbeat application id
       * @type {String} 
       */
      appId: '',
     
      /**
       * Your Opbeat organization id
       * @type {String} 
       */
      organizationId: '',
     
      /**
       * Your Opbeat secret token
       * @type {String} 
       */
      secretToken: '',
     
      /**
       * Is Opbeat active now
       */
      active: process.env.NODE_ENV === 'production'
    };

    Install

    npm i sails-hook-opbeat

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • kos