Module: OpenTelemetry::Instrumentation::Rails::Patches::ActionController::Metal
- Defined in:
- lib/opentelemetry/instrumentation/rails/patches/action_controller/metal.rb
Overview
Module to prepend to ActionController::Metal for instrumentation
Instance Method Summary collapse
Instance Method Details
#dispatch(name, request, response) ⇒ Object
14 15 16 17 18 |
# File 'lib/opentelemetry/instrumentation/rails/patches/action_controller/metal.rb', line 14 def dispatch(name, request, response) rack_span = OpenTelemetry::Instrumentation::Rack.current_span rack_span.name = "#{self.class.name}##{name}" if rack_span.context.valid? && !request.env['action_dispatch.exception'] super(name, request, response) end |