updated sentry libs from raven to @sentry

This commit is contained in:
Danny Coates 2019-08-09 11:06:21 -07:00
parent 927c981cd7
commit 807ecff471
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 106 additions and 71 deletions

View file

@ -1,7 +1,7 @@
import 'intl-pluralrules';
import choo from 'choo';
import html from 'choo/html';
import Raven from 'raven-js';
import * as Sentry from '@sentry/browser';
import { setApiUrlPrefix, getConstants } from '../app/api';
import metrics from '../app/metrics';
@ -82,7 +82,7 @@ function body(main) {
state.archive = new Archive([], DEFAULTS.EXPIRE_SECONDS);
state.storage = storage;
state.user = new User(storage, LIMITS);
state.raven = Raven;
state.sentry = Sentry;
});
app.use(metrics);
app.route('/', body(home));