Sha256: 8d7d2ed206841a5730a3659b06da5dec0d0c1b4fd1c7ddf737679f6febc60e63

Contents?: true

Size: 462 Bytes

Versions: 63

Compression:

Stored size: 462 Bytes

Contents

module Appsignal
  class Hooks
    class PassengerHook < Appsignal::Hooks::Hook
      register :passenger

      def dependencies_present?
        defined?(::PhusionPassenger)
      end

      def install
        ::PhusionPassenger.on_event(:starting_worker_process) do |forked|
          Appsignal.forked
        end

        ::PhusionPassenger.on_event(:stopping_worker_process) do
          Appsignal.stop('passenger')
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
appsignal-2.0.6 lib/appsignal/hooks/passenger.rb
appsignal-2.0.5 lib/appsignal/hooks/passenger.rb
appsignal-2.0.5.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-2.1.0.alpha.3 lib/appsignal/hooks/passenger.rb
appsignal-2.1.0.alpha.2 lib/appsignal/hooks/passenger.rb
appsignal-2.1.0.alpha.1 lib/appsignal/hooks/passenger.rb
appsignal-2.0.4 lib/appsignal/hooks/passenger.rb
appsignal-2.0.3 lib/appsignal/hooks/passenger.rb
appsignal-2.0.2 lib/appsignal/hooks/passenger.rb
appsignal-2.0.1 lib/appsignal/hooks/passenger.rb
appsignal-2.0.0 lib/appsignal/hooks/passenger.rb
appsignal-2.0.0.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.4.0.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.3.6 lib/appsignal/hooks/passenger.rb
appsignal-1.3.6.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.3.5 lib/appsignal/hooks/passenger.rb
appsignal-1.3.5.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.3.4 lib/appsignal/hooks/passenger.rb
appsignal-1.3.3 lib/appsignal/hooks/passenger.rb
appsignal-1.4.0.alpha.2 lib/appsignal/hooks/passenger.rb