Sha256: ab6069448cd68153499653c5afd2bf13b563ecc9a6cafcace0a0dc88f33eca12

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

# typed: false

require 'datadog/tracing/contrib/patcher'
require 'datadog/tracing/contrib/sneakers/integration'
require 'datadog/tracing/contrib/sneakers/tracer'

module Datadog
  module Tracing
    module Contrib
      module Sneakers
        # Patcher enables patching of 'sneakers' module.
        module Patcher
          include Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::Sneakers.middleware.use(Sneakers::Tracer, nil)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-1.0.0 lib/datadog/tracing/contrib/sneakers/patcher.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/sneakers/patcher.rb