Sha256: 7b1844b4ed7e1d370d6cd4d28099dbe3892e545fa4ae10a867046b347c7518d8

Contents?: true

Size: 633 Bytes

Versions: 70

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    # @api private
    module UnicornIntegration
      # Make sure that appsignal is started and the last transaction
      # in a worker gets flushed.
      #
      # We'd love to be able to hook this into Unicorn in a less
      # intrusive way, but this is the best we can do given the
      # options we have.

      module Server
        def worker_loop(worker)
          Appsignal.forked
          super
        end
      end

      module Worker
        def close
          Appsignal.stop("unicorn")
          super
        end
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
appsignal-4.3.3-java lib/appsignal/integrations/unicorn.rb
appsignal-4.3.3 lib/appsignal/integrations/unicorn.rb
appsignal-4.3.2-java lib/appsignal/integrations/unicorn.rb
appsignal-4.3.2 lib/appsignal/integrations/unicorn.rb
appsignal-4.3.1-java lib/appsignal/integrations/unicorn.rb
appsignal-4.3.1 lib/appsignal/integrations/unicorn.rb
appsignal-4.3.0-java lib/appsignal/integrations/unicorn.rb
appsignal-4.3.0 lib/appsignal/integrations/unicorn.rb
appsignal-4.2.3-java lib/appsignal/integrations/unicorn.rb
appsignal-4.2.3 lib/appsignal/integrations/unicorn.rb
appsignal-4.2.2-java lib/appsignal/integrations/unicorn.rb
appsignal-4.2.2 lib/appsignal/integrations/unicorn.rb
appsignal-4.2.1-java lib/appsignal/integrations/unicorn.rb
appsignal-4.2.1 lib/appsignal/integrations/unicorn.rb
appsignal-4.2.0-java lib/appsignal/integrations/unicorn.rb
appsignal-4.2.0 lib/appsignal/integrations/unicorn.rb
appsignal-4.1.3-java lib/appsignal/integrations/unicorn.rb
appsignal-4.1.3 lib/appsignal/integrations/unicorn.rb
appsignal-4.1.2-java lib/appsignal/integrations/unicorn.rb
appsignal-4.1.2 lib/appsignal/integrations/unicorn.rb