Skip to content

Commit

Permalink
add report inactive module to Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Feb 10, 2025
1 parent 45ec1b3 commit d794366
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/zinnia.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ export async function run ({
type: 'error',
message: `${capitalize(module)} has been inactive for 5 minutes, restarting...`
})

const err = new Error('Module inactive for 5 minutes')
Object.assign(err, { module })
maybeReportErrorToSentry(err)

controller.abort()
}, 5 * 60 * 1000)
}
Expand Down

0 comments on commit d794366

Please sign in to comment.