module Datadog::Contrib::Httprb::Patcher
Patcher
enables patching of 'httprb' module.
Public Instance Methods
patch()
click to toggle source
patch applies our patch
# File lib/ddtrace/contrib/httprb/patcher.rb, line 23 def patch do_once(:httprb) do begin ::HTTP::Client.send(:include, Instrumentation) rescue StandardError => e Datadog::Logger.error("Unable to apply httprb integration: #{e}") end end end
patched?()
click to toggle source
# File lib/ddtrace/contrib/httprb/patcher.rb, line 14 def patched? done?(:httprb) end
target_version()
click to toggle source
# File lib/ddtrace/contrib/httprb/patcher.rb, line 18 def target_version Integration.version end