Sha256: 9907b01efa0c381502df0769af8d8d1f669f81a93e4743631eb2ff8d124ede13

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

require_relative '../patcher'
require_relative 'ext'
require_relative 'events'

module Datadog
  module Tracing
    module Contrib
      module ActionMailer
        # Patcher enables patching of 'action_mailer' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            # Subscribe to ActionMailer events
            Events.subscribe!
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/tracing/contrib/action_mailer/patcher.rb
ddtrace-1.10.0 lib/datadog/tracing/contrib/action_mailer/patcher.rb