Sha256: c10057f5d0f57d16da4b7d233fbe7fdd8001ee706a393d2f924137cf0270b3a6

Contents?: true

Size: 531 Bytes

Versions: 12

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

# typed: false

require_relative '../patcher'
require_relative '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

12 entries across 12 versions & 1 rubygems

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