Sha256: e947f0b1e45bd54d3278551d65719bf70ceda02de31f89520df2aa4860dffd8b

Contents?: true

Size: 614 Bytes

Versions: 190

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    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

190 entries across 190 versions & 1 rubygems

Version Path
appsignal-3.0.21.alpha.1-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.21.alpha.1 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.20-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.20 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.19-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.19 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.18-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.18 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.17-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.17 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.16-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.16 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.15-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.15 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.14-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.14 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.13-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.13 lib/appsignal/integrations/unicorn.rb
appsignal-3.0.12-java lib/appsignal/integrations/unicorn.rb
appsignal-3.0.12 lib/appsignal/integrations/unicorn.rb