Sha256: b67bddec6df0fc4ffc82605eb0d4558f3c1f9541752eeff3a9fe96cf7dbbe3f3
Contents?: true
Size: 540 Bytes
Versions: 42
Compression:
Stored size: 540 Bytes
Contents
begin require 'resque' rescue LoadError raise "Can't find 'resque' gem. You'll need to require it before you require the Raygun Failure handler" end module Resque module Failure class Raygun < Base 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 end end end
Version data entries
42 entries across 42 versions & 1 rubygems