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

Version Path
raygun4ruby-4.0.2 lib/resque/failure/raygun.rb
raygun4ruby-4.0.1 lib/resque/failure/raygun.rb
raygun4ruby-4.0.0.pre lib/resque/failure/raygun.rb
raygun4ruby-3.2.3 lib/resque/failure/raygun.rb
raygun4ruby-3.2.3.pre lib/resque/failure/raygun.rb
raygun4ruby-3.2.1 lib/resque/failure/raygun.rb
raygun4ruby-3.2.0 lib/resque/failure/raygun.rb
raygun4ruby-3.1.1 lib/resque/failure/raygun.rb
raygun4ruby-3.1.0 lib/resque/failure/raygun.rb
raygun4ruby-3.0.0 lib/resque/failure/raygun.rb
raygun4ruby-2.7.1 lib/resque/failure/raygun.rb
raygun4ruby-2.7.0 lib/resque/failure/raygun.rb
raygun4ruby-2.6.0 lib/resque/failure/raygun.rb
raygun4ruby-2.5.0 lib/resque/failure/raygun.rb
raygun4ruby-2.4.1 lib/resque/failure/raygun.rb
raygun4ruby-2.4.0 lib/resque/failure/raygun.rb
raygun4ruby-2.3.0 lib/resque/failure/raygun.rb
raygun4ruby-2.2.0 lib/resque/failure/raygun.rb
raygun4ruby-2.1.0 lib/resque/failure/raygun.rb
raygun4ruby-2.0.0 lib/resque/failure/raygun.rb