This package contains an example net/http
application, with Bugsnag configured.
- Change the API key in
main.go
to a project you've created in Bugsnag. - Inside
bugsnag-go/examples/http
do:go mod tidy go run main.go
- The application is now running. You can now visit
http://localhost:9001/unhandled - to trigger an unhandled panic http://localhost:9001/handled - to trigger a handled error
- You should now see events for these exceptions in your Bugsnag dashboard.