Caution
This is very early prototype
email_error_reporter
uses the new Rails error reporting API to send emails whenever an exception is being reported. It works out of the box with HTTP requests, job errors and the rails runner errors.
Add the gem:
bundle add email_error_reporter && bundle install
and configure the email addresses that should receive an email in the case of an exception:
# application.rb
config.email_error_reporter.to = ["[email protected]"]
email_error_reporter
will reuse your environment specific ActionMailer configuration for delivering emails.
All exceptions are reported automatically. No additional code required.
Please consult the official guides for an introduction to the error reporting API.
The gem is available as open source under the terms of the MIT License.