Module: Rollbar::ActiveJob
- Defined in:
- lib/rollbar/plugins/active_job.rb
Overview
Report any uncaught errors in a job to Rollbar and reraise
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rollbar/plugins/active_job.rb', line 4 def self.included(base) base.send :rescue_from, Exception do |exception| Rollbar.error(exception, :job => self.class.name, :job_id => job_id, :use_exception_level_filters => true) raise exception end end |