Sha256: eb989496717b439ac89752982f7c5f54b61d05d404fd0fb2a38fc938937058db

Contents?: true

Size: 648 Bytes

Versions: 12

Compression:

Stored size: 648 Bytes

Contents

# typed: false

require_relative 'events/process'
require_relative 'events/deliver'

module Datadog
  module Tracing
    module Contrib
      module ActionMailer
        # Defines collection of instrumented ActionMailer events
        module Events
          ALL = [
            Events::Process,
            Events::Deliver
          ].freeze

          module_function

          def all
            self::ALL
          end

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.5.2 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.5.1 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.5.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.4.2 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.4.1 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.4.0 lib/datadog/tracing/contrib/action_mailer/events.rb
ddtrace-1.3.0 lib/datadog/tracing/contrib/action_mailer/events.rb