将 Sentry 与 Mojolicious 集成

Integrate Sentry with 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. Mojolicious::Plugin::ErrorTracking::Sentry;
  2. Mojolicious::Plugin::ExceptionSentry