Module: Datadog::Contrib::ActiveRecord::Patcher
- Includes:
- Patcher
- Defined in:
- lib/ddtrace/contrib/active_record/patcher.rb
Overview
Patcher enables patching of ‘active_record’ 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_record/patcher.rb', line 17 def patch do_once(:active_record) do begin Events.subscribe! rescue StandardError => e Datadog::Tracer.log.error("Unable to apply Active Record integration: #{e}") end end end |
.patched? ⇒ Boolean
13 14 15 |
# File 'lib/ddtrace/contrib/active_record/patcher.rb', line 13 def patched? done?(:active_record) end |