Module: Datadog::Contrib::ConcurrentRuby::Patcher
- Includes:
- Patcher, Kernel
- Defined in:
- lib/ddtrace/contrib/concurrent_ruby/patcher.rb
Overview
Patcher enables patching of 'Future' class.
Class Method Summary collapse
- .patch ⇒ Object
-
.patch_future ⇒ Object
Propagate tracing context in Concurrent::Future.
- .target_version ⇒ Object
Methods included from Patcher
Class Method Details
.patch ⇒ Object
18 19 20 21 |
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 18 def patch require 'ddtrace/contrib/concurrent_ruby/future_patch' patch_future end |
.patch_future ⇒ Object
Propagate tracing context in Concurrent::Future
24 25 26 |
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 24 def patch_future ::Concurrent::Future.include(FuturePatch) end |
.target_version ⇒ Object
14 15 16 |
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 14 def target_version Integration.version end |