Sha256: efaf1847ac262a46fc93ecaf82a8eb0426520c5464ba9454690e7b264a7c4dbd

Contents?: true

Size: 442 Bytes

Versions: 49

Compression:

Stored size: 442 Bytes

Contents

if defined?(::PhusionPassenger)
  Appsignal.logger.info('Loading Passenger integration')

  ::PhusionPassenger.on_event(:starting_worker_process) do |forked|
    Appsignal.logger.debug('starting worker process')
    Appsignal.agent.forked!
  end

  ::PhusionPassenger.on_event(:stopping_worker_process) do
    Appsignal.logger.debug('stopping worker process')
    Appsignal.agent.shutdown(true, 'stopping Passenger worker process')
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
appsignal-0.10.2 lib/appsignal/integrations/passenger.rb
appsignal-0.10.1 lib/appsignal/integrations/passenger.rb
appsignal-0.10.0 lib/appsignal/integrations/passenger.rb
appsignal-0.9.6 lib/appsignal/integrations/passenger.rb
appsignal-0.9.5 lib/appsignal/integrations/passenger.rb
appsignal-0.10.0.beta.0 lib/appsignal/integrations/passenger.rb
appsignal-0.9.4 lib/appsignal/integrations/passenger.rb
appsignal-0.9.3 lib/appsignal/integrations/passenger.rb
appsignal-0.9.2 lib/appsignal/integrations/passenger.rb