Module: Datadog::Contrib::Racecar::Events

Defined in:
lib/ddtrace/contrib/racecar/events.rb,
lib/ddtrace/contrib/racecar/events/batch.rb,
lib/ddtrace/contrib/racecar/events/message.rb

Overview

Defines collection of instrumented Racecar events

Defined Under Namespace

Modules: Batch, Message

Constant Summary collapse

ALL =
[
  Events::Batch,
  Events::Message
].freeze

Class Method Summary collapse

Class Method Details

.allObject



16
17
18
# File 'lib/ddtrace/contrib/racecar/events.rb', line 16

def all
  self::ALL
end

.subscribe!Object



24
25
26
# File 'lib/ddtrace/contrib/racecar/events.rb', line 24

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

.subscriptionsObject



20
21
22
# File 'lib/ddtrace/contrib/racecar/events.rb', line 20

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