Sha256: 713ad9e33f9219bd3190b3308b64b447ba9cda5410ef141ce7c9fecc95e7b1cb

Contents?: true

Size: 471 Bytes

Versions: 7

Compression:

Stored size: 471 Bytes

Contents

module Resque
  module Failure
    ##
    # Provides Resque integration with Airbrake.
    #
    # @since v5.0.0
    # @see https://github.com/resque/resque/wiki/Failure-Backends
    class Airbrake < Base
      def save
        return unless (notice = ::Airbrake.build_notice(exception, payload))
        notice[:context][:component] = 'resque'
        notice[:context][:action] = payload['class'].to_s

        ::Airbrake.notify_sync(notice)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
airbrake-6.0.0 lib/airbrake/resque/failure.rb
airbrake-5.8.1 lib/airbrake/resque/failure.rb
airbrake-5.8.0 lib/airbrake/resque/failure.rb
airbrake-5.8.0.rc.3 lib/airbrake/resque/failure.rb
airbrake-5.8.0.rc.2 lib/airbrake/resque/failure.rb
airbrake-5.8.0.rc.1 lib/airbrake/resque/failure.rb
airbrake-5.7.1 lib/airbrake/resque/failure.rb