Class: Datadog::Tracing::Contrib::ActionCable::Integration
- Inherits:
-
Object
- Object
- Datadog::Tracing::Contrib::ActionCable::Integration
- Includes:
- Integration
- Defined in:
- lib/datadog/tracing/contrib/action_cable/integration.rb
Overview
Description of ActionCable integration
Constant Summary collapse
- MINIMUM_VERSION =
Gem::Version.new('5.0.0')
Class Method Summary collapse
Instance Method Summary collapse
-
#auto_instrument? ⇒ Boolean
enabled by rails integration so should only auto instrument if detected that it is being used without rails.
- #new_configuration ⇒ Object
- #patcher ⇒ Object
Methods included from Integration
Class Method Details
.compatible? ⇒ Boolean
32 33 34 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 32 def self.compatible? super && version >= MINIMUM_VERSION end |
.gem_name ⇒ Object
20 21 22 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 20 def self.gem_name 'actioncable' end |
.loaded? ⇒ Boolean
28 29 30 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 28 def self.loaded? !defined?(::ActionCable).nil? end |
.version ⇒ Object
24 25 26 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 24 def self.version Gem.loaded_specs['actioncable'] && Gem.loaded_specs['actioncable'].version end |
Instance Method Details
#auto_instrument? ⇒ Boolean
enabled by rails integration so should only auto instrument if detected that it is being used without rails
38 39 40 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 38 def auto_instrument? !Core::Contrib::Rails::Utils.railtie_supported? end |
#new_configuration ⇒ Object
42 43 44 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 42 def new_configuration Configuration::Settings.new end |
#patcher ⇒ Object
46 47 48 |
# File 'lib/datadog/tracing/contrib/action_cable/integration.rb', line 46 def patcher Patcher end |