Source:
# File activesupport/lib/active_support/notifications/fanout.rb, line 201 def finish(name, id, payload) stack = Thread.current[:_event_stack] event = stack.pop event.finish! @delegate.call event end
# File activesupport/lib/active_support/notifications/fanout.rb, line 194 def start(name, id, payload) stack = Thread.current[:_event_stack] ||= [] event = build_event name, id, payload event.start! stack.push event end