Sha256: e5645cba97b18b7e4e1c33778804657226db4d700e1bc9769d32738681574c45

Contents?: true

Size: 539 Bytes

Versions: 12

Compression:

Stored size: 539 Bytes

Contents

# typed: true

require_relative '../../../tracing/contrib/patcher'
require_relative 'instrumentation'

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

          module_function

          def target_version
            Integration.version
          end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.8.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.7.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.6.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.6.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.5.2 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.5.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.5.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.4.2 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.4.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.4.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.3.0 lib/datadog/ci/contrib/cucumber/patcher.rb