Hello,
I am using Mongodb triggers for running some periodic jobs. In order to collect the errors I want to send them to Sentry by using its SDK on Nodejs:
exports = async function() {
const Sentry = require('@sentry/node');
const SentryTracing = require("@sentry/tracing")
console.log(Sentry.init)
Sentry.init(); // or using Sentry.init({ dsn: "something" }) does not make any difference.
}
And I get am getting this error with no stack trace:
> error:
{"message":"Value is not an object: undefined","name":"TypeError"}
Any help or clue is appreciated.