Sha256: 186019a0d1710c5adf9970ad022a8d7d7db55a505c9185c67138c1af8335bd98

Contents?: true

Size: 555 Bytes

Versions: 8

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: 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

8 entries across 8 versions & 1 rubygems

Version Path
ddtrace-1.14.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.13.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.13.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.12.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.12.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.11.1 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.11.0 lib/datadog/ci/contrib/cucumber/patcher.rb
ddtrace-1.11.0.beta1 lib/datadog/ci/contrib/cucumber/patcher.rb