Sha256: f34d4f0c89b7cbbc9da19ef5749a7eb0302412957f8946849c87e459a8f32fd3
Contents?: true
Size: 668 Bytes
Versions: 6
Compression:
Stored size: 668 Bytes
Contents
require 'ddtrace/contrib/patcher' require 'ddtrace/contrib/action_pack/action_controller/patcher' module Datadog module Contrib module ActionPack # Patcher enables patching of 'action_pack' module. module Patcher include Contrib::Patcher module_function def patched? done?(:action_pack) end 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 end end end end
Version data entries
6 entries across 6 versions & 2 rubygems