Sentry middleware for Hoa.
$ npm i @hoajs/sentry --saveimport { Hoa } from 'hoa'
import { sentry } from '@hoajs/sentry'
const app = new Hoa()
app.use(sentry({ dsn: 'xxx' }))
app.use(async (ctx) => {
ctx.throw(400, 'Some error')
})
export default appThe documentation is available on hoa-js.com
$ npm testMIT