Class: HousingMisc::ApplicationController

Inherits:
ActionController::Base show all
Defined in:
app/controllers/housing_misc/application_controller.rb

Instance Method Summary collapse

Methods inherited from ActionController::Base

#render

Instance Method Details

#new_relic_custom_paramsObject



5
6
7
8
9
# File 'app/controllers/housing_misc/application_controller.rb', line 5

def new_relic_custom_params
  ::NewRelic::Agent.add_custom_attributes(:http_referer =>  request.referer)
  ::NewRelic::Agent.add_custom_attributes(:referring_app =>  request.headers["app-name"])
  ::NewRelic::Agent.add_custom_attributes(:global_request_id =>  Thread.current[:global_request_id])
end