Dead simple webhook worker for Sentry to output events in a Discord channel
This is just a simple Rust HTTP service to do so, this is just for my use case and no one else. :)
You just need Rust, the version I am using (at the time of writing this is):
$ rustc --version
# rustc 1.61.0-nightly (1eb72580d 2022-03-08)
$ git clone https://github.com/auguwu/sentry-webhook
$ cargo build --release
$ ./target/release/sentry_webhook
You can use the Docker image from the GitHub Container Registry:
$ docker run -d -p 3939:3939 --name sentry-worker -v /path/to/config.toml:/app/noel/sentry/worker/config.toml ghcr.io/auguwu/sentry-worker:latest # or prepend a version :>
If you are using the worker, then you will need to create a developer app from the Sentry dashboard under Settings > Developer Settings > New Internal Integration
At the moment, we didn't include issue.create, issue.delete, or issue.update events; only error.create events will pop up but error events will only open up if you're running a self-hosted instance of Sentry or have a Business Plan. If you wish to contribute for issue events, submit a PR!
sentry-webhook is released under the Apache 2.0 License by Noel.