Import placeholder

pull/31/head
Samuel Lippert 2022-08-09 14:09:45 -05:00
parent 9dc53e6428
commit e667634a3d
No known key found for this signature in database
GPG Key ID: 3762857AF8948B2C
1 changed files with 8 additions and 7 deletions

View File

@ -1,16 +1,17 @@
import type { Handler } from 'https://raw.githubusercontent.com/honojs/hono/v2.0.6/deno_dist/mod.ts'
// import Toucan from '../node_modules/toucan-js/dist/index.d.ts'
export const sentry = (): Handler => {
return async (c, next) => {
// const sentry = new Toucan({
// dsn: c.env.SENTRY_DSN,
// request: c.req,
// allowedHeaders: ['user-agent'],
// allowedSearchParams: /(.*)/,
// })
// const sentry = new Toucan({
// dsn: c.env.SENTRY_DSN,
// request: c.req,
// allowedHeaders: ['user-agent'],
// allowedSearchParams: /(.*)/,
// })
// try {
await next()
await next()
// } catch (error) {
// sentry.captureException(error)
// }