Sha256: 4ec1fdd3bde401d4e4554b915610deb57fdd3c2c75d72079a393626b3300314d

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require_relative '../../patcher'
require_relative 'instrumentation'

module Datadog
  module Tracing
    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
end

Version data entries

2 entries across 2 versions & 1 rubygems

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