lib/rails/instrumentation/utils.rb
def register_subscriber(full_name: '', event_name: '', handler_module: nil)
          ::ActiveSupport::Notifications.subscribe(full_name) do |*args|
            event = ::ActiveSupport::Notifications::Event.new(*args)
            handler_module.send(event_name, event)
          end
        end
# calls a handler function with name 'event' on the handler module.
# For example, if the handler module is ActionViewSubscriber and the
# event hook is 'render_template.action_controller', full_name is
# 'render_template.action_controller' and event_name is 'render_template'
calls a handler function with name 'event' on the handler module.
calls a handler function with name ' event ' on the handler module .
def register_subscriber(full_name: '', event_name: '', handler_module: nil)
          ::ActiveSupport::Notifications.subscribe(full_name) do |*args|
            event = ::ActiveSupport::Notifications::Event.new(*args)
            handler_module.send(event_name, event)
          end
        end
def register_subscriber ( full_name : '' , event_name : '' , handler_module : nil ) :: ActiveSupport :: Notifications . subscribe ( full_name ) do | * args | event = :: ActiveSupport :: Notifications :: Event . new ( * args ) handler_module . send ( event_name , event ) end end
calls a handler function with name 'event' on the handler module.
calls a handler function with name ' event ' on the handler module .
full_name
event_name
handler_module