Sha256: 4a78e05059031da387abc01a519a2fcadaf10ed652e82387205f407a0e92bf82

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

# typed: false
# frozen_string_literal: true

require 'ddtrace/contrib/sneakers/tracer'

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

        module_function

        def target_version
          Integration.version
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/sneakers/patcher.rb
ddtrace-0.54.1 lib/ddtrace/contrib/sneakers/patcher.rb
ddtrace-0.54.0 lib/ddtrace/contrib/sneakers/patcher.rb
ddtrace-0.53.0 lib/ddtrace/contrib/sneakers/patcher.rb
ddtrace-0.52.0 lib/ddtrace/contrib/sneakers/patcher.rb