Using Raven/Sentry with Meteor


#1

Just how? It looks like Meteor swallows all errors and nothing is captured by Raven.


#2

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();
}

#3

On client startup, it’s similar

  const sentryClientDsn = lo_.get(Meteor, 'settings.public.sentry.dsn', null);
  Raven.config(sentryClientDsn).install();

Sentry/Raven with Meteor on Server
#4

client.patchGlobal is deprecated.

And this solution does not report all things to Sentry (see Sentry/Raven with Meteor on Server)


#5

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?