Module: Datadog::Contrib::ActionPack::Patcher

Includes:
Patcher
Defined in:
lib/ddtrace/contrib/action_pack/patcher.rb

Overview

Patcher enables patching of ‘action_pack’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



17
18
19
20
21
22
23
24
25
# File 'lib/ddtrace/contrib/action_pack/patcher.rb', line 17

def patch
  do_once(:action_pack) do
    begin
      ActionController::Patcher.patch
    rescue StandardError => e
      Datadog::Tracer.log.error("Unable to apply ActionPack integration: #{e}")
    end
  end
end

.patched?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ddtrace/contrib/action_pack/patcher.rb', line 13

def patched?
  done?(:action_pack)
end