Module: Datadog::Tracing::Contrib::ActiveJob::Events

Defined in:
lib/datadog/tracing/contrib/active_job/events.rb,
lib/datadog/tracing/contrib/active_job/events/discard.rb,
lib/datadog/tracing/contrib/active_job/events/enqueue.rb,
lib/datadog/tracing/contrib/active_job/events/perform.rb,
lib/datadog/tracing/contrib/active_job/events/enqueue_at.rb,
lib/datadog/tracing/contrib/active_job/events/enqueue_retry.rb,
lib/datadog/tracing/contrib/active_job/events/retry_stopped.rb

Overview

Defines collection of instrumented ActiveJob events

Defined Under Namespace

Modules: Discard, Enqueue, EnqueueAt, EnqueueRetry, Perform, RetryStopped

Constant Summary collapse

ALL =
[
  Events::Discard,
  Events::Enqueue,
  Events::EnqueueAt,
  Events::EnqueueRetry,
  Events::Perform,
  Events::RetryStopped,
].freeze

Class Method Summary collapse

Class Method Details

.allObject



27
28
29
# File 'lib/datadog/tracing/contrib/active_job/events.rb', line 27

def all
  self::ALL
end

.subscribe!Object



35
36
37
# File 'lib/datadog/tracing/contrib/active_job/events.rb', line 35

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

.subscriptionsObject



31
32
33
# File 'lib/datadog/tracing/contrib/active_job/events.rb', line 31

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