Class: BrainzLab::Rails::Collectors::ActionController

Inherits:
Base
  • Object
show all
Defined in:
lib/brainzlab/rails/collectors/action_controller.rb

Overview

Collects Action Controller events and routes to products Primary source for HTTP request observability

Instance Attribute Summary

Attributes inherited from Base

#configuration

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BrainzLab::Rails::Collectors::Base

Instance Method Details

#process(event_data) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/brainzlab/rails/collectors/action_controller.rb', line 9

def process(event_data)
  case event_data[:name]
  when 'start_processing.action_controller'
    handle_start_processing(event_data)
  when 'process_action.action_controller'
    handle_process_action(event_data)
  when 'redirect_to.action_controller'
    handle_redirect(event_data)
  when 'halted_callback.action_controller'
    handle_halted_callback(event_data)
  when 'send_file.action_controller', 'send_data.action_controller', 'send_stream.action_controller'
    handle_send_file(event_data)
  when 'unpermitted_parameters.action_controller'
    handle_unpermitted_parameters(event_data)
  when 'rate_limit.action_controller'
    handle_rate_limit(event_data)
  when /fragment.*\.action_controller$/
    handle_fragment_cache(event_data)
  when 'deprecation.rails'
    handle_deprecation(event_data)
  when 'process_middleware.action_dispatch'
    handle_middleware(event_data)
  when 'redirect.action_dispatch'
    handle_dispatch_redirect(event_data)
  when 'request.action_dispatch'
    handle_dispatch_request(event_data)
  end
end