- Defined in:
Google::Cloud::ErrorReporting::Railtie automatically add theto Rack in a Rails environment. It will automatically capture Exceptions from the Rails app and report them to the Stackdriver Error Reporting service.
The Middleware is only added when certain conditions are met. See
Google::Cloud.configure.use_error_reporting for detail.
When loaded, the Configuration Guide on how to configure the Railtie and Middleware.will be inserted after ActionDispatch::DebugExceptions or ActionDispatch::ShowExceptions Middleware, which allows it to intercept and handle all Exceptions without interfering with Rails's normal error pages. See the