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-1.4.0.alpha.1 lib/appsignal/hooks/passenger.rb
appsignal-1.3.2 lib/appsignal/hooks/passenger.rb
appsignal-1.3.1 lib/appsignal/hooks/passenger.rb
appsignal-1.3.0 lib/appsignal/hooks/passenger.rb
appsignal-1.3.0.beta.3 lib/appsignal/hooks/passenger.rb
appsignal-1.3.0.beta.2 lib/appsignal/hooks/passenger.rb
appsignal-1.3.0.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.2.5 lib/appsignal/hooks/passenger.rb
appsignal-1.2.4 lib/appsignal/hooks/passenger.rb
appsignal-1.2.4.beta.4 lib/appsignal/hooks/passenger.rb
appsignal-1.2.4.beta.3 lib/appsignal/hooks/passenger.rb
appsignal-1.2.4.beta.2 lib/appsignal/hooks/passenger.rb
appsignal-1.2.4.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.2.3 lib/appsignal/hooks/passenger.rb
appsignal-1.2.3.beta.3 lib/appsignal/hooks/passenger.rb
appsignal-1.2.3.beta.2 lib/appsignal/hooks/passenger.rb
appsignal-1.2.3.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-1.2.2 lib/appsignal/hooks/passenger.rb
appsignal-1.2.1 lib/appsignal/hooks/passenger.rb
appsignal-1.2.1.beta.3 lib/appsignal/hooks/passenger.rb