Sha256: 838f6fad2b21ffaa2007cf1edb824391a23c84f46776a67f18a27dae0e7b9d78

Contents?: true

Size: 471 Bytes

Versions: 21

Compression:

Stored size: 471 Bytes

Contents

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

21 entries across 21 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/hooks/que.rb
appsignal-2.5.3 lib/appsignal/hooks/que.rb
appsignal-2.5.3.alpha.2 lib/appsignal/hooks/que.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/hooks/que.rb
appsignal-2.5.3.alpha.1 lib/appsignal/hooks/que.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/hooks/que.rb
appsignal-2.5.2-java lib/appsignal/hooks/que.rb
appsignal-2.5.2 lib/appsignal/hooks/que.rb
appsignal-2.5.1-java lib/appsignal/hooks/que.rb
appsignal-2.5.1 lib/appsignal/hooks/que.rb
appsignal-2.5.1.beta.1-java lib/appsignal/hooks/que.rb
appsignal-2.5.1.beta.1 lib/appsignal/hooks/que.rb
appsignal-2.5.0-java lib/appsignal/hooks/que.rb
appsignal-2.5.0 lib/appsignal/hooks/que.rb
appsignal-2.5.0.beta.1-java lib/appsignal/hooks/que.rb
appsignal-2.5.0.beta.1 lib/appsignal/hooks/que.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/hooks/que.rb
appsignal-2.5.0.alpha.1 lib/appsignal/hooks/que.rb
appsignal-2.4.3 lib/appsignal/hooks/que.rb
appsignal-2.4.2 lib/appsignal/hooks/que.rb