Skip to content

atatus/atatus-meteor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atatus with Meteor

Atatus integration for Meteor. Includes atatus.js for frontend error tracking and performance monitoring.

Signup for Atatus.

Installation

Add package using meteor add atatus:atatus

Add AtatusNotifier.initialize(settings) to Meteor.startup() on the client, ie:

Meteor.startup(function () {
    AtatusNotifier.initialize({
      client: {
        apiKey: 'YOUR_API_KEY',
        options: {
            tags: ['paid_user', 'premium'],
            customData: {
              name: "John Doe",
              plan: "premium",
              beta_access: true
            },
            version: '1.0.0'
        }
      },
      trackUser: true
    });
});

where client.apiKey is your project's API key. client.options is an advanced configuration to atatus and it is optional.

If you are using the Meteor Accounts package, you can enable user tracking on errors with trackUser option.

Notify Error

Atatus can capture errors automatically. You can also manually notify error as follows

AtatusNotifier.notify(new Error('Test error'));

Optionally you can pass a custom data as second argument and tags as third argument:

AtatusNotifier.notify(new Error('Test error'), {
      name: "John Doe",
      plan: "premium",
      beta_access: true
    }, ['production', 'premium']);

Atatus also works very well with saving full error and exception stack traces. Simply pass an Error or a Meteor.Error object to the log method to keep the stack trace.

AtatusNotifier.notify(new Meteor.Error(422, 'Failed to save object to database'));

About

Atatus integration package for Meteor

Resources

Stars

Watchers

Forks

Packages

No packages published