Class: Appsignal::Hooks

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/hooks.rb,
lib/appsignal/hooks/puma.rb,
lib/appsignal/hooks/rake.rb,
lib/appsignal/hooks/redis.rb,
lib/appsignal/hooks/sequel.rb,
lib/appsignal/hooks/sidekiq.rb,
lib/appsignal/hooks/unicorn.rb,
lib/appsignal/hooks/net_http.rb,
lib/appsignal/hooks/celluloid.rb,
lib/appsignal/hooks/passenger.rb,
lib/appsignal/hooks/shoryuken.rb,
lib/appsignal/hooks/delayed_job.rb,
lib/appsignal/hooks/mongo_ruby_driver.rb,
lib/appsignal/integrations/mongo_ruby_driver.rb,
lib/appsignal/integrations/delayed_job_plugin.rb

Defined Under Namespace

Modules: Helpers, SequelLogConnectionExtension, SequelLogExtension Classes: CelluloidHook, DelayedJobHook, DelayedJobPlugin, Hook, MongoMonitorSubscriber, MongoRubyDriverHook, NetHttpHook, PassengerHook, PumaHook, RakeHook, RedisHook, SequelHook, ShoryukenHook, ShoryukenMiddleware, SidekiqHook, SidekiqPlugin, UnicornHook

Class Method Summary collapse

Class Method Details

.hooksObject


14
15
16
# File 'lib/appsignal/hooks.rb', line 14

def hooks
  @hooks ||= {}
end

.load_hooksObject


8
9
10
11
12
# File 'lib/appsignal/hooks.rb', line 8

def load_hooks
  hooks.each do |name, hook|
    hook.try_to_install(name)
  end
end

.register(name, hook) ⇒ Object


4
5
6
# File 'lib/appsignal/hooks.rb', line 4

def register(name, hook)
  hooks[name] = hook
end