Module: Datadog::Tracing::Contrib::Sneakers::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/sneakers/patcher.rb

Overview

Patcher enables patching of ‘sneakers’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



20
21
22
# File 'lib/datadog/tracing/contrib/sneakers/patcher.rb', line 20

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

.target_versionObject



16
17
18
# File 'lib/datadog/tracing/contrib/sneakers/patcher.rb', line 16

def target_version
  Integration.version
end