Sha256: d88dcebe7f748763e78e41d725d4ee8225a304462594991601b9cb4d648a80ec

Contents?: true

Size: 538 Bytes

Versions: 17

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

module Airbrake
  module Rails
    module ActionCable
      # @since v8.3.0
      # @api private
      class NotifyCallback
        def self.call(channel, block)
          block.call
        rescue Exception => ex # rubocop:disable Lint/RescueException
          notice = Airbrake.build_notice(ex)
          notice[:context][:component] = 'action_cable'
          notice[:context][:action] = channel.channel_name
          Airbrake.notify(notice)

          raise ex
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
airbrake-13.0.4 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-13.0.3 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-13.0.2 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-13.0.1 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-13.0.0 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-12.0.0 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-11.0.3 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-11.0.2 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-11.0.1 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.6 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-11.0.0 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.1.0.rc.1 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.5 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.4 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.3 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.2 lib/airbrake/rails/action_cable/notify_callback.rb
airbrake-10.0.1 lib/airbrake/rails/action_cable/notify_callback.rb