Class: Resque::Failure::Rollbar

Inherits:
Base
  • Object
show all
Defined in:
lib/rollbar/plugins/resque/failure.rb

Overview

Falure class to use in Resque in order to send Resque errors to the Rollbar API

Instance Method Summary collapse

Instance Method Details

#saveObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/rollbar/plugins/resque/failure.rb', line 8

def save
  payload_with_options =
    if use_exception_level_filters?
      payload.merge(:use_exception_level_filters => true)
    else
      payload
    end

  rollbar.error(exception, payload_with_options)
end