honojs-middleware/deno_dist
Samuel Lippert e667634a3d
Import placeholder
2022-08-09 14:09:45 -05:00
..
README.md Update README + deno index 2022-08-09 11:08:36 -05:00
index.ts Import placeholder 2022-08-09 14:09:45 -05:00
mod.ts Initial commit 2022-08-04 08:54:30 +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