Sha256: d80f3bbb16b14734145aeae371d77bd65b2ee602b3fd5ccc6fab4e71543e56f4

Contents?: true

Size: 463 Bytes

Versions: 7

Compression:

Stored size: 463 Bytes

Contents

require 'ddtrace/contrib/patcher'
require 'ddtrace/contrib/cucumber/instrumentation'

module Datadog
  module Contrib
    module Cucumber
      # Patcher enables patching of 'cucumber' module.
      module Patcher
        include Contrib::Patcher

        module_function

        def target_version
          Integration.version
        end

        def patch
          ::Cucumber::Runtime.send(:include, Instrumentation)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-0.49.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.48.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.47.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.46.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.45.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.44.0 lib/ddtrace/contrib/cucumber/patcher.rb
ddtrace-0.43.0 lib/ddtrace/contrib/cucumber/patcher.rb