This is an example application describing how you can send custom context payloads for Exceptions in sentry-rails.
You will need to have a SENTRY_DSN
to receive events in Sentry. You
can signup for a free trial in their website (https://sentry.io)
bundle install
env SENTRY_DSN=<your-sentry-dsn-here> rails s
- In your browser, go to https://localhost:3000/errors
- lib/exceptions/exceptions.rb - Exceptions definitions
- app/controllers/errors_controller.rb - Triggering an exception
- config/application.rb - Adding
lib/exceptions
to autoload paths