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

Defined in:
lib/datadog/tracing/contrib/racecar/events.rb,
lib/datadog/tracing/contrib/racecar/events/batch.rb,
lib/datadog/tracing/contrib/racecar/events/consume.rb,
lib/datadog/tracing/contrib/racecar/events/message.rb

Overview

Defines collection of instrumented Racecar events

Defined Under Namespace

Modules: Batch, Consume, Message

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.allObject



21
22
23
# File 'lib/datadog/tracing/contrib/racecar/events.rb', line 21

def all
  self::ALL
end

.subscribe!Object



29
30
31
# File 'lib/datadog/tracing/contrib/racecar/events.rb', line 29

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

.subscriptionsObject



25
26
27
# File 'lib/datadog/tracing/contrib/racecar/events.rb', line 25

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