Class: Instana::Activators::ActionCable
- Inherits:
-
Instana::Activator
- Object
- Instana::Activator
- Instana::Activators::ActionCable
- Defined in:
- lib/instana/activators/action_cable.rb
Instance Method Summary collapse
Methods inherited from Instana::Activator
Instance Method Details
#can_instrument? ⇒ Boolean
7 8 9 |
# File 'lib/instana/activators/action_cable.rb', line 7 def can_instrument? defined?(::ActionCable::Connection::Base) && defined?(::ActionCable::Channel::Base) end |
#instrument ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/instana/activators/action_cable.rb', line 11 def instrument require 'instana/instrumentation/action_cable' ::ActionCable::Connection::Base .prepend(Instana::Instrumentation::ActionCableConnection) ::ActionCable::Channel::Base .prepend(Instana::Instrumentation::ActionCableChannel) true end |