import {
  subscribeToUncaughtExceptions,
} from '../utils/error-handling';

import * as Raven from 'raven-js';

declare const SENTRY_KEY: string;
if (SENTRY_KEY && SENTRY_KEY.length > 0) {
  Raven
    .config(SENTRY_KEY)
    .install();

  subscribeToUncaughtExceptions(err => {
    const e = new Error(err.name);
    e.message = err.message;
    e.stack = err.stack;
    Raven.captureException(e);
  });
}

import {
  subscribeToUncaughtExceptions,
} from '../utils/error-handling';

import * as Raven from 'raven-js';

declare const SENTRY_KEY: string;
if (SENTRY_KEY && SENTRY_KEY.length > 0) {
  Raven
    .config(SENTRY_KEY, { release: chrome.runtime.getManifest().version })
    .install();

  subscribeToUncaughtExceptions(err => {
    const e = new Error(err.name);
    e.message = err.message;
    e.stack = err.stack;
    Raven.captureException(e);
  });
}

Tag error report with Augury version (as “release”)
Tag error report with Augury version (as “release”)
