Module: Datadog::Contrib::ActionCable::Events

Defined in:
lib/ddtrace/contrib/action_cable/events.rb,
lib/ddtrace/contrib/action_cable/events/transmit.rb,
lib/ddtrace/contrib/action_cable/events/broadcast.rb,
lib/ddtrace/contrib/action_cable/events/perform_action.rb

Overview

Defines collection of instrumented ActionCable events

Defined Under Namespace

Modules: Broadcast, PerformAction, Transmit

Constant Summary collapse

ALL =
[
  Events::Broadcast,
  Events::PerformAction,
  Events::Transmit
].freeze

Class Method Summary collapse

Class Method Details

.allObject



19
20
21
# File 'lib/ddtrace/contrib/action_cable/events.rb', line 19

def all
  self::ALL
end

.subscribe!Object



27
28
29
# File 'lib/ddtrace/contrib/action_cable/events.rb', line 27

def subscribe!
  all.each(&:subscribe!)
end

.subscriptionsObject



23
24
25
# File 'lib/ddtrace/contrib/action_cable/events.rb', line 23

def subscriptions
  all.collect(&:subscriptions).collect(&:to_a).flatten
end