Module: Airbrake::ActionCable::Channel::Base Private

Defined in:
lib/airbrake/rails/action_cable.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#perform_action(*args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • v8.3.0



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/airbrake/rails/action_cable.rb', line 20

def perform_action(*args, &block)
  super(*args, &block)
rescue Exception => ex # rubocop:disable Lint/RescueException
  Airbrake.notify(ex) do |notice|
    notice.stash[:action_cable_connection] = connection
    notice[:context][:component] = self.class
    notice[:context][:action] = args.first['action']
    notice[:params].merge!(args.first)
  end

  raise ex
end