Module: LogStasher::ActionController::Instrumentation

Defined in:
lib/logstasher/rails_ext/action_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#process_action(*args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/logstasher/rails_ext/action_controller/base.rb', line 6

def process_action(*args)
  add_custom_fields_to_store
  LogStasher.clear_request_context
  LogStasher.add_default_fields_to_request_context(request)

  super(*args)
  LogStasher::CustomFields.clear
end