将哨兵与Mojolicious集成

时间:2020-05-13 16:42:23

标签: perl sentry mojolicious

是否有一种解决方案可以自动将Mojolicious的错误发送给Sentry?对于Express,它就像

Sentry.init({
    dsn: 'http://asdf@sentry.somwhere/2',
})

const app = express()

// The request handler must be the first middleware on the app
app.use(Sentry.Handlers.requestHandler())

1 个答案:

答案 0 :(得分:1)

是的,有一些插件可以做到这一点:

  1. Mojolicious::Plugin::ErrorTracking::Sentry;
  2. Mojolicious::Plugin::ExceptionSentry