Send sentry.io events to Discord.
sentrywebookscloudflare workersThis is a Worker to send sentry.io events into a Discord Channel. At the time of writing, Sentry didn't provide native integration with Discord. You might want to double-check if native functionality is available.
The GitHub project is available here.
copy paste installation #
- create a new Cloudflare worker
- copy and paste the contents of
index.jsinto the quick edit editor, save and deploy - open the Cloudflare Workers settings page and add a new Environment Variable
Use WEBHOOK for the VARIABLE_NAME and the generated Discord webhook URL for the Value
wrangler installation #
if you're using wrangler already, here's how to do this with wrangler:
- update
wrangler.tomlwith your own Cloudflare Account ID (replace<YOUR ACCOUNTID>), you can find your account ID in the Cloudflare Workers dashboard - publish the Worker with
wranglerwrangler publish
- create the
WEBHOOKsecret withwranglerwrangler secret put WEBHOOKand add your discord webhook url in there
sentry configuration #
- go ahead and configure sentry to send events to your workers script, for example:
https://super-worker.awesomesauce.workers.dev/