Sha256: 9de0d071af667a1f20cfcd47f74f148d955639d20aa4782d83e01ffbeda0f3d6

Contents?: true

Size: 502 Bytes

Versions: 160

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class QueHook < Appsignal::Hooks::Hook
      register :que

      def dependencies_present?
        defined?(::Que::Job)
      end

      def install
        require "appsignal/integrations/que"
        ::Que::Job.send(:include, Appsignal::Integrations::QuePlugin)

        ::Que.error_notifier = proc do |error, _job|
          Appsignal::Transaction.current.set_error(error)
        end
      end
    end
  end
end

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
appsignal-2.7.0 lib/appsignal/hooks/que.rb
appsignal-2.7.0-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.beta.2 lib/appsignal/hooks/que.rb
appsignal-2.7.0.beta.2-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.beta.1 lib/appsignal/hooks/que.rb
appsignal-2.7.0.beta.1-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.4-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.4 lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.3-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.3 lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.2-java lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.2 lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.1 lib/appsignal/hooks/que.rb
appsignal-2.7.0.alpha.1-java lib/appsignal/hooks/que.rb
appsignal-2.6.1-java lib/appsignal/hooks/que.rb
appsignal-2.6.1 lib/appsignal/hooks/que.rb
appsignal-2.6.0-java lib/appsignal/hooks/que.rb
appsignal-2.6.0 lib/appsignal/hooks/que.rb
appsignal-2.6.0.beta.1 lib/appsignal/hooks/que.rb
appsignal-2.6.0.beta.1-java lib/appsignal/hooks/que.rb