Import placeholder
parent
9dc53e6428
commit
e667634a3d
|
@ -1,16 +1,17 @@
|
||||||
import type { Handler } from 'https://raw.githubusercontent.com/honojs/hono/v2.0.6/deno_dist/mod.ts'
|
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 => {
|
export const sentry = (): Handler => {
|
||||||
return async (c, next) => {
|
return async (c, next) => {
|
||||||
// const sentry = new Toucan({
|
// const sentry = new Toucan({
|
||||||
// dsn: c.env.SENTRY_DSN,
|
// dsn: c.env.SENTRY_DSN,
|
||||||
// request: c.req,
|
// request: c.req,
|
||||||
// allowedHeaders: ['user-agent'],
|
// allowedHeaders: ['user-agent'],
|
||||||
// allowedSearchParams: /(.*)/,
|
// allowedSearchParams: /(.*)/,
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
await next()
|
await next()
|
||||||
// } catch (error) {
|
// } catch (error) {
|
||||||
// sentry.captureException(error)
|
// sentry.captureException(error)
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in New Issue