Module: Datadog::Contrib::ActiveSupport::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/contrib/active_support/patcher.rb
Overview
Patcher enables patching of ‘active_support’ module.
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.patch ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/ddtrace/contrib/active_support/patcher.rb', line 17 def patch do_once(:active_support) do begin Cache::Patcher.patch rescue StandardError => e Datadog::Tracer.log.error("Unable to apply Active Support integration: #{e}") end end end |
.patched? ⇒ Boolean
13 14 15 |
# File 'lib/ddtrace/contrib/active_support/patcher.rb', line 13 def patched? done?(:active_support) end |