Module: Datadog::Tracing::Contrib::ActionMailer::Events

Defined in:
lib/datadog/tracing/contrib/action_mailer/events.rb,
lib/datadog/tracing/contrib/action_mailer/events/deliver.rb,
lib/datadog/tracing/contrib/action_mailer/events/process.rb

Overview

Defines collection of instrumented ActionMailer events

Defined Under Namespace

Modules: Deliver, Process

Constant Summary collapse

ALL =
[
  Events::Process,
  Events::Deliver
].freeze

Class Method Summary collapse

Class Method Details

.allObject



19
20
21
# File 'lib/datadog/tracing/contrib/action_mailer/events.rb', line 19

def all
  self::ALL
end

.subscribe!Object



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

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

.subscriptionsObject



23
24
25
# File 'lib/datadog/tracing/contrib/action_mailer/events.rb', line 23

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