This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = {} |