Module: Instana::Instrumentation::ActionController

Defined in:
lib/instana/instrumentation/action_controller.rb

Instance Method Summary collapse

Instance Method Details

#process_action(*args) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/instana/instrumentation/action_controller.rb', line 7

def process_action(*args)
  call_payload = {
    actioncontroller: {
      controller: self.class.name,
      action: action_name
    }
  }
  request.env['INSTANA_HTTP_PATH_TEMPLATE'] = matched_path_template
  ::Instana.tracer.in_span(:actioncontroller, attributes: call_payload) { super(*args) }
end

#render(*args, &block) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/instana/instrumentation/action_controller.rb', line 18

def render(*args, &block)
  call_payload = {
    actionview: {
      name: describe_render_options(args.first) || 'Default'
    }
  }
  ::Instana.tracer.in_span(:actionview, attributes: call_payload) { super(*args, &block) }
end