Module: Datadog::Contrib::ConcurrentRuby::Patcher

Includes:
Patcher
Defined in:
lib/ddtrace/contrib/concurrent_ruby/patcher.rb

Overview

Patcher enables patching of ‘Future’ class.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



16
17
18
19
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 16

def patch
  require 'ddtrace/contrib/concurrent_ruby/future_patch'
  patch_future
end

.patch_futureObject

Propagate tracing context in Concurrent::Future



22
23
24
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 22

def patch_future
  ::Concurrent::Future.send(:include, FuturePatch)
end

.target_versionObject



12
13
14
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 12

def target_version
  Integration.version
end