Class: Resque::Failure::Raygun

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

Instance Method Summary collapse

Instance Method Details

#saveObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/resque/failure/raygun.rb', line 11

def save
  ::Raygun.track_exception(exception,
    custom_data: {
      resque: {
        worker: worker.to_s,
        queue:  queue.to_s,
        job:    payload['class'].to_s,
        args:   payload['args'].inspect
      }
    }
  )
end