monorepo for Hono third-party middleware/helpers/wrappers
 
 
Go to file
Yusuke Wada 8e16d4c9a0 Enable options and callback function 2022-08-12 00:37:53 +09:00
.github/workflows Initial commit 2022-08-04 08:54:30 +09:00
deno_dist Deno library + re-throw error 2022-08-10 14:54:58 -05:00
deno_test Toucan reference not valid for Deno 2022-08-09 11:32:06 -05:00
src Enable options and callback function 2022-08-12 00:37:53 +09:00
test Enable options and callback function 2022-08-12 00:37:53 +09:00
.eslintrc.js Initial commit 2022-08-04 08:54:30 +09:00
.gitignore Initial commit 2022-08-04 08:54:30 +09:00
.prettierrc Initial commit 2022-08-04 08:54:30 +09:00
README.md Deno library + re-throw error 2022-08-10 14:54:58 -05:00
jest.config.js Initial commit 2022-08-04 08:54:30 +09:00
package.json Enable options and callback function 2022-08-12 00:37:53 +09:00
tsconfig.json Initial commit 2022-08-04 08:54:30 +09:00
yarn.lock Enable options and callback function 2022-08-12 00:37:53 +09:00

README.md

Sentry middleware for Hono

Sentry middleware for Hono. This middleware sends captured exceptions to the Sentry data source named by the SENTRY_DSN environment variable via toucan-js.

Usage

import { sentry } from '@honojs/sentry'
import { Hono } from 'hono'

const app = new Hono()

app.use('*', sentry())
app.get('/', (c) => c.text('foo'))

export default app

Deno

import { serve } from 'https://deno.land/std/http/server.ts'
import { sentry } from 'https://deno.land/x/hono_sentry/mod.ts'
import { Hono } from 'https://deno.land/x/hono/mod.ts'

const app = new Hono()

app.use('*', sentry())
app.get('/', (c) => c.text('foo'))

serve(app.fetch)

Author

Yusuke Wada https://github.com/yusukebe

License

MIT