Just how? It looks like Meteor swallows all errors and nothing is captured by Raven.
In server folder
import raven from 'raven';
import lo_ from 'lodash';
const sentryDsn = lo_.get(Meteor, 'settings.services.sentry.dsn', null);
if (sentryDsn) {
const client = new raven.Client(sentryDsn);
// initialize Raven’s global error handler
client.patchGlobal();
}
On client startup, it’s similar
const sentryClientDsn = lo_.get(Meteor, 'settings.public.sentry.dsn', null);
Raven.config(sentryClientDsn).install();
client.patchGlobal is deprecated.
And this solution does not report all things to Sentry (see Sentry/Raven with Meteor on Server)
Yes!
So now I can’t do patchGlobal and seems like Raven.config(sentryURL, {autoBreadcrumbs: true} ).install({unhandledRejection: true }); does nothing.
Did anyone was able to fix it?
1 Like