Module: Datadog::Tracing::Contrib::ActionCable::Patcher

Includes:
Patcher
Defined in:
lib/datadog/tracing/contrib/action_cable/patcher.rb

Overview

Patcher enables patching of ‘action_cable’ module.

Class Method Summary collapse

Methods included from Patcher

included

Class Method Details

.patchObject



22
23
24
25
26
# File 'lib/datadog/tracing/contrib/action_cable/patcher.rb', line 22

def patch
  Events.subscribe!
  ::ActionCable::Connection::Base.prepend(Instrumentation::ActionCableConnection)
  ::ActionCable::Channel::Base.include(Instrumentation::ActionCableChannel)
end

.target_versionObject



18
19
20
# File 'lib/datadog/tracing/contrib/action_cable/patcher.rb', line 18

def target_version
  Integration.version
end