I’m trying sending an exception that I caught in a try/catch block but without success…
// somefile.js
const fn = () => {
try {
// ... err!
} catch(err) {
logger.error(err);
}
};
and in my logger
// logger.js
const Sentry = require('@sentry/node');
exports.error = err => {
const sentryId = Sentry.captureException(err);
console.log('ERROR THROWN', err.message, sentryId);
};
I do get the ID as a GUID, but I see nothing on Sentry Dashboard
What am I missing?
BTW, Sentry initialization is already being made in the server.js
file, as that’s the first one being loaded … I assume I don’t need to keep initializing the account…