Sha256: effec231a219e4aedc995220a03657417d5bfd30287e182c55eeb84318e0b8d6

Contents?: true

Size: 579 Bytes

Versions: 5

Compression:

Stored size: 579 Bytes

Contents

# typed: true
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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/action_pack/action_controller/patcher.rb