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
- .patch ⇒ Object
-
.patch_future ⇒ Object
Propagate tracing context in Concurrent::Future.
- .target_version ⇒ Object
Methods included from Patcher
Class Method Details
.patch ⇒ Object
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_future ⇒ Object
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_version ⇒ Object
12 13 14 |
# File 'lib/ddtrace/contrib/concurrent_ruby/patcher.rb', line 12 def target_version Integration.version end |