honojs-middleware/deno_dist
Yusuke Wada 68b8b3977b
fix(deno): update url to import (#11)
* fix(deno): update url to import

* fixed import path
2022-12-13 15:40:22 +09:00
..
README.md Update README.md 2022-08-22 10:14:46 -05:00
index.ts fix(deno): update url to import (#11) 2022-12-13 15:40:22 +09: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 specified Sentry data source name 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({ dsn: 'https://xxxxxx@xxx.ingest.sentry.io/xxxxxx' }))
app.get('/', (c) => c.text('foo'))

serve(app.fetch)

Author

Samuel Lippert https://github.com/sam-lippert

License

MIT