Module: Oboe::Inst::Rails3ActionController
- Included in:
- ActionController::Base
- Defined in:
- lib/oboe/frameworks/rails/inst/action_controller.rb
Instance Method Summary collapse
Instance Method Details
#process(*args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/oboe/frameworks/rails/inst/action_controller.rb', line 7 def process(*args) header = request.headers['X-Trace'] Oboe::API.start_trace_with_target('rails', header, response.headers) do super end end |
#process_action(*args) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/oboe/frameworks/rails/inst/action_controller.rb', line 15 def process_action(*args) opts = { 'HTTP-Host' => @_request.headers['HTTP_HOST'], :URL => @_request.headers['REQUEST_URI'], :Method => @_request.headers['REQUEST_METHOD'], :Controller => self.class.name, :Action => self.action_name, } super opts[:Status] = @_response.status Oboe::API.log('rails', 'info', opts) rescue Exception => exception opts[:Status] = 500 Oboe::API.log('rails', 'info', opts) raise end |