Class: Unicorn::HttpServer

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/integrations/unicorn.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#original_worker_loopObject



9
# File 'lib/appsignal/integrations/unicorn.rb', line 9

alias_method :original_worker_loop, :worker_loop

#worker_loop(worker) ⇒ Object



11
12
13
14
# File 'lib/appsignal/integrations/unicorn.rb', line 11

def worker_loop(worker)
  Appsignal.agent.forked!
  original_worker_loop(worker)
end