module Datadog::Monkey
TODO: Remove me! Monkey
was used for monkey-patching 3rd party libs. It is now DEPRECATED. This API is no-op, and serves only to warn of its deactivation.
Constants
- DEPRECATION_WARNING
Attributes
registry[W]
Public Instance Methods
autopatch_modules()
click to toggle source
# File lib/ddtrace/monkey.rb, line 23 def autopatch_modules log_deprecation_warning('Monkey#autopatch_modules') {} end
get_patched_modules()
click to toggle source
# File lib/ddtrace/monkey.rb, line 40 def get_patched_modules log_deprecation_warning('Monkey#get_patched_modules') {} end
log_deprecation_warning(method)
click to toggle source
# File lib/ddtrace/monkey.rb, line 50 def log_deprecation_warning(method) Datadog.logger.warn("#{method}:#{DEPRECATION_WARNING}") end
patch(modules)
click to toggle source
# File lib/ddtrace/monkey.rb, line 36 def patch(modules) log_deprecation_warning('Monkey#patch') end
patch_all()
click to toggle source
# File lib/ddtrace/monkey.rb, line 28 def patch_all log_deprecation_warning('Monkey#patch_all') end
patch_module(m)
click to toggle source
# File lib/ddtrace/monkey.rb, line 32 def patch_module(m) log_deprecation_warning('Monkey#patch_module') end
registry()
click to toggle source
# File lib/ddtrace/monkey.rb, line 18 def registry log_deprecation_warning('Monkey#registry') @registry end
without_warnings(&block)
click to toggle source
# File lib/ddtrace/monkey.rb, line 45 def without_warnings(&block) log_deprecation_warning('Monkey#without_warnings') Datadog::Patcher.without_warnings(&block) end