Setting up Meteor monitoring is easy

This short and simple guide will get you familiar in integrating Atatus with Meteor apps
and start tracking error and performance.


Install Atatus meteor package

meteor add atatus:atatus

Initialize atatus in your meteor client startup

if (Meteor.isClient) {
  Meteor.startup(function () {
      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.

Install Atatus Node.js agent

To track errors in Meteor server, you need to create Node.js APM project and install Atatus Node.js agent.

// Install Atatus Node Agent
npm install --save atatus-node

Initialize atatus in your meteor server startup

if (Meteor.isServer) {
  var atatus = require("atatus-node");
  // var atatus = Meteor.npmRequire("atatus-node"); // For older meteor
      apiKey: 'NODE_PROJECT_API_KEY',
      beforeErrorSend: function (payload) {
        // Remove stack trace from error message.
        if (payload.exceptions && payload.exceptions[0] &&
            payload.exceptions[0].message) {
          var message = payload.exceptions[0].message;
          var atIndex = message.indexOf('   at');
          if (atIndex > 10) {
            message = message.substring(0, atIndex);
            payload.exceptions[0].message = message;

        return true;

  var consoleLogOrig = console.log;
  console.log = function (message) {

      // special case for meteor dev mode
      if(message === 'LISTENING') {
        return, 'LISTENING');

      if (typeof message === 'string' && message.indexOf('Exception') === 0) {

      consoleLogOrig.apply(console, arguments);

Send an event

Just reopen your app now. That's it! You've sent your first event.