19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
import type { Handler } from 'https://raw.githubusercontent.com/honojs/hono/v2.0.6/deno_dist/mod.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: /(.*)/,
|
|
// })
|
|
|
|
// try {
|
|
await next()
|
|
// } catch (error) {
|
|
// sentry.captureException(error)
|
|
// }
|
|
}
|
|
}
|