Clarifying Question: are you using any kind of framework for your project?
Clarifying Question: are you using any kind of framework for your project?
onError() handler.If you're running your application on Cloudflare Workers, set a binding value named SENTRY_DSN, which will be used as the DSN.
wrangler.toml file?wrangler.toml file or .dev.vars filec.get('sentry') -- that returns emptyheaders.set('Accept', 'application/json'); ,it will throw errorsnodejs_compatcompatibility_flags = ["nodejs_compat"] and node_compat = true not having the same compatabilitynode_compat polyfill system, which isn't supported on Functions.wranglerimport { Hono } from 'hono'
import { sentry } from '@hono/sentry'
const app = new Hono<{ Bindings: Bindings }>({ strict: false })
app.use('*', sentry({ debug: true }))app.get('/call-sentry', async(c) => {
c.get('sentry').captureException('Something happened, tell Sentry!')
}) "stack": " at run7 (functionsWorker-0.9172056921113851.js:425:19)
at async onRequest8 (functionsWorker-0.9172056921113851.js:374:12)
at async next (functionsWorker-0.9172056921113851.js:915:26)
at async Object.fetch (functionsWorker-0.9172056921113851.js:929:14)",