Sha256: d63265e99965cbab9cde198317ea15ff986edeb75d230c9477405c1a6964e4c3

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 Bytes

Contents

# typed: true

require 'datadog/tracing/contrib/patcher'
require 'datadog/tracing/contrib/action_pack/action_controller/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

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.2.0 lib/datadog/tracing/contrib/action_pack/action_controller/patcher.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/action_pack/action_controller/patcher.rb
ddtrace-1.0.0 lib/datadog/tracing/contrib/action_pack/action_controller/patcher.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/action_pack/action_controller/patcher.rb