cloudflare / worker-sentry

Sentry over Access for Worker
MIT License
47 stars 7 forks source link

How to use it with module Workers? #5

Open gouku opened 2 years ago

gouku commented 2 years ago

The examples in the readme is not for the new module workers. An updated example would be appreciated.

svachmic commented 1 year ago

I have a followup on this other than just "+1". The tutorial seems to claim that [vars] would be a good way to go. But I'm on Wranger version 1.20.0 and [vars] are not being picked up at all. Locally a .dev.vars worked fine, but even for deployment, the variables were not transferred. Is this still the recommended way to set the Sentry integration up?

mgoodfellow commented 1 year ago

Just use toucan-js directly I think: https://github.com/robertcepa/toucan-js/blob/master/examples/wrangler-basic/src/index.ts