Sha256: 19e8ee6b4bc7f04bd3a8e00030387c2c0c4ca2e09d83355310110dd7749c1fe3

Contents?: true

Size: 413 Bytes

Versions: 16

Compression:

Stored size: 413 Bytes

Contents

module Rollbar
  # Report any uncaught errors in a job to Rollbar and reraise
  module ActiveJob
    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
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rollbar-2.17.0 lib/rollbar/plugins/active_job.rb
rollbar-2.16.4 lib/rollbar/plugins/active_job.rb
rollbar-2.16.3 lib/rollbar/plugins/active_job.rb
rollbar-2.16.2 lib/rollbar/plugins/active_job.rb
rollbar-2.16.0 lib/rollbar/plugins/active_job.rb
rollbar-2.15.6 lib/rollbar/plugins/active_job.rb
rollbar-2.15.5 lib/rollbar/plugins/active_job.rb
rollbar-2.15.4 lib/rollbar/plugins/active_job.rb
rollbar-2.15.3 lib/rollbar/plugins/active_job.rb
rollbar-2.15.2 lib/rollbar/plugins/active_job.rb
rollbar-2.15.1 lib/rollbar/plugins/active_job.rb
rollbar-2.15.0 lib/rollbar/plugins/active_job.rb
rollbar-2.14.1 lib/rollbar/plugins/active_job.rb
rollbar-2.14.0 lib/rollbar/plugins/active_job.rb
rollbar-2.13.3 lib/rollbar/plugins/active_job.rb
rollbar-2.13.2 lib/rollbar/plugins/active_job.rb