Skip to content

Instantly share code, notes, and snippets.

# config/intializers/page_request_info.rb
module ActionController
class PageRequestInfo
# http://guides.rubyonrails.org/active_support_instrumentation.html
# http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html
# call() is called as an ActiveSupport::Notifications subscriber callback - see the very bottom of this file for the subscriber registration
# We manipulate the Notification event payload so that lograge can log out extra information easily.
def call(name, started, finished, unique_id, payload)
request_info = Thread.current[:page_request_info] || {}
log_info = {}
# config/intializers/page_request_info.rb
module ActionController
class PageRequestInfo
# http://guides.rubyonrails.org/active_support_instrumentation.html
# http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html
# call() is called as an ActiveSupport::Notifications subscriber callback - see the very bottom of this file for the subscriber registration
# We manipulate the Notification event payload so that lograge can log out extra information easily.
def call(name, started, finished, unique_id, payload)
request_info = Thread.current[:page_request_info] || {}
log_info = {}
# config/intializers/page_request_info.rb
module ActionController
class PageRequestInfo
# http://guides.rubyonrails.org/active_support_instrumentation.html
# http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html
# call() is called as an ActiveSupport::Notifications subscriber callback - see the very bottom of this file for the subscriber registration
# We manipulate the Notification event payload so that lograge can log out extra information easily.
def call(name, started, finished, unique_id, payload)
request_info = Thread.current[:page_request_info] || {}
log_info = {}
# config/intializers/page_request_info.rb
module ActionController
class PageRequestInfo
# http://guides.rubyonrails.org/active_support_instrumentation.html
# http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html
# call() is called as an ActiveSupport::Notifications subscriber callback - see the very bottom of this file for the subscriber registration
# We manipulate the Notification event payload so that lograge can log out extra information easily.
def call(name, started, finished, unique_id, payload)
request_info = Thread.current[:page_request_info] || {}
log_info = {}