You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot figure out how to make agendaJS work with Sentry . I need to have my whole app monitored. I know how to initialize Sentry but where to put the "wrapper" to will allow me to capture any error and get notified in real-time ?
constSentry=require("@sentry/node");constTracing=require("@sentry/tracing");Sentry.init({dsn: process.env.my_dsn,tracesSampleRate: 1.0,});agenda.define("delete old users",async(job)=>{awaitUser.remove({lastLogIn: {$lt: twoDaysAgo}});});(asyncfunction(){awaitagenda.start();awaitagenda.every("3 minutes","delete old users");awaitagenda.every("*/3 * * * *","delete old users");})();// what is the best way to integrate sentry ?
This discussion was converted from issue #1423 on January 20, 2022 16:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I cannot figure out how to make
agendaJS
work withSentry
. I need to have my whole app monitored. I know how to initialize Sentry but where to put the "wrapper" to will allow me to capture any error and get notified in real-time ?Any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions