Sha256: 942a236f33af1098d93cd1775d18700c11f89ad1797d93506c431572b3231b0d

Contents?: true

Size: 565 Bytes

Versions: 3

Compression:

Stored size: 565 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/action_pack/action_controller/instrumentation'

module Datadog
  module Contrib
    module ActionPack
      module ActionController
        # Patcher for ActionController components
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::ActionController::Metal.prepend(ActionController::Instrumentation::Metal)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.51.0 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.50.0 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb