class Airbrake::Rails::Railties::ActionControllerTie

def tie_routes_apm

def tie_routes_apm
  [
    # Cache route information for the duration of the request.
    ['start_processing.action_controller', @route_subscriber],
    # Send route stats.
    ['process_action.action_controller', @notify_subscriber],
    # Send performance breakdown: where a request spends its time.
    ['process_action.action_controller', @performance_breakdown_subscriber],
  ].each do |(event, callback)|
    ActiveSupport::Notifications.subscribe(event, callback)
  end
end