Sha256: 4962600842dfb9c918274aa16dd8900061b5d8bd1f55945fb227d4c1281d39ee

Contents?: true

Size: 482 Bytes

Versions: 38

Compression:

Stored size: 482 Bytes

Contents

module Appsignal
  class Hooks
    # @api private
    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

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.3 lib/appsignal/hooks/passenger.rb
appsignal-2.5.3.alpha.2 lib/appsignal/hooks/passenger.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.3.alpha.1 lib/appsignal/hooks/passenger.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.2-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.2 lib/appsignal/hooks/passenger.rb
appsignal-2.5.1-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.1 lib/appsignal/hooks/passenger.rb
appsignal-2.5.1.beta.1-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.1.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-2.5.0-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.0 lib/appsignal/hooks/passenger.rb
appsignal-2.5.0.beta.1-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.0.beta.1 lib/appsignal/hooks/passenger.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/hooks/passenger.rb
appsignal-2.5.0.alpha.1 lib/appsignal/hooks/passenger.rb
appsignal-2.4.3 lib/appsignal/hooks/passenger.rb
appsignal-2.4.2 lib/appsignal/hooks/passenger.rb