Skip to content

hoa-js/sentry

Repository files navigation

@hoajs/sentry

Sentry middleware for Hoa.

Installation

$ npm i @hoajs/sentry --save

Quick Start

import { 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 app

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

Sentry middleware for Hoa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published