monorepo for Hono third-party middleware/helpers/wrappers
 
 
Go to file
sam-lippert 3193d30bed
Update README.md
2022-08-22 09:19:13 -05:00
.github/workflows Initial commit 2022-08-04 08:54:30 +09:00
deno_dist remove Context mock from deno test 2022-08-13 08:42:45 +09:00
deno_test remove Context mock from deno test 2022-08-13 08:42:45 +09:00
src Use toucan.js on Deno 2022-08-12 12:41:03 +09:00
test Add callback test 2022-08-12 14:33:42 -05:00
.eslintrc.js Linting 2022-08-12 09:47:15 -05: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 Update README.md 2022-08-22 09:19:13 -05:00
jest.config.js Initial commit 2022-08-04 08:54:30 +09:00
package.json Use toucan.js on Deno 2022-08-12 12:41:03 +09:00
tsconfig.json Initial commit 2022-08-04 08:54:30 +09:00
yarn.lock do not depeds `@sentry/types` 2022-08-12 01:38:59 +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