Module: Datadog::Contrib::Ethon::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/contrib/ethon/patcher.rb
Overview
Patcher enables patching of ‘ethon’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ddtrace/contrib/ethon/patcher.rb', line 14 def patch do_once(:ethon) do require 'ddtrace/ext/app_types' require 'ddtrace/contrib/ethon/easy_patch' require 'ddtrace/contrib/ethon/multi_patch' ::Ethon::Easy.send(:include, EasyPatch) ::Ethon::Multi.send(:include, MultiPatch) end end |
.patched? ⇒ Boolean
10 11 12 |
# File 'lib/ddtrace/contrib/ethon/patcher.rb', line 10 def patched? done?(:ethon) end |