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

Defined in:
lib/datadog/tracing/contrib/action_cable/events.rb,
lib/datadog/tracing/contrib/action_cable/events/transmit.rb,
lib/datadog/tracing/contrib/action_cable/events/broadcast.rb,
lib/datadog/tracing/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



22
23
24
# File 'lib/datadog/tracing/contrib/action_cable/events.rb', line 22

def all
  self::ALL
end

.subscribe!Object



30
31
32
# File 'lib/datadog/tracing/contrib/action_cable/events.rb', line 30

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

.subscriptionsObject



26
27
28
# File 'lib/datadog/tracing/contrib/action_cable/events.rb', line 26

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