Sha256: c89922718b26dce833ba7e5df3aa52975b08c805ba4ade97d864c3f3cdbd8c88

Contents?: true

Size: 874 Bytes

Versions: 40

Compression:

Stored size: 874 Bytes

Contents

APPSIGNAL_PUMA_PLUGIN_LOADED = true

# AppSignal Puma plugin
#
# This plugin ensures the minutely probe thread is started with the Puma
# minutely probe in the Puma master process.
#
# The constant {APPSIGNAL_PUMA_PLUGIN_LOADED} is here to mark the Plugin as
# loaded by the rest of the AppSignal gem. This ensures that the Puma minutely
# probe is not also started in every Puma workers, which was the old behavior.
# See {Appsignal::Hooks::PumaHook#install} for more information.
#
# For even more information:
# https://docs.appsignal.com/ruby/integrations/puma.html
Puma::Plugin.create do
  def start(launcher = nil)
    launcher.events.on_booted do
      require "appsignal"
      if ::Puma.respond_to?(:stats)
        Appsignal::Minutely.probes.register :puma, Appsignal::Hooks::PumaProbe
      end
      Appsignal.start
      Appsignal.start_logger
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
appsignal-2.10.12 lib/puma/plugin/appsignal.rb
appsignal-2.10.12-java lib/puma/plugin/appsignal.rb
appsignal-2.10.11 lib/puma/plugin/appsignal.rb
appsignal-2.10.11-java lib/puma/plugin/appsignal.rb
appsignal-2.10.10 lib/puma/plugin/appsignal.rb
appsignal-2.10.10-java lib/puma/plugin/appsignal.rb
appsignal-2.11.0.alpha.1 lib/puma/plugin/appsignal.rb
appsignal-2.11.0.alpha.1-java lib/puma/plugin/appsignal.rb
appsignal-2.10.9 lib/puma/plugin/appsignal.rb
appsignal-2.10.9-java lib/puma/plugin/appsignal.rb
appsignal-2.10.9.beta.1-java lib/puma/plugin/appsignal.rb
appsignal-2.10.9.beta.1 lib/puma/plugin/appsignal.rb
appsignal-2.10.8 lib/puma/plugin/appsignal.rb
appsignal-2.10.8-java lib/puma/plugin/appsignal.rb
appsignal-2.10.7-java lib/puma/plugin/appsignal.rb
appsignal-2.10.7 lib/puma/plugin/appsignal.rb
appsignal-2.10.6-java lib/puma/plugin/appsignal.rb
appsignal-2.10.6 lib/puma/plugin/appsignal.rb
appsignal-2.10.6.beta.1-java lib/puma/plugin/appsignal.rb
appsignal-2.10.6.beta.1 lib/puma/plugin/appsignal.rb