Sha256: fa8e62b7b8983143f2fd821c834ba8bce3d72f0f893cfdf8ee134c1ef2dec4a2
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
Contents
require 'ddtrace/contrib/integration' require 'ddtrace/contrib/action_cable/configuration/settings' require 'ddtrace/contrib/action_cable/patcher' require 'ddtrace/contrib/rails/utils' module Datadog module Contrib module ActionCable # Description of ActionCable integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('5.0.0') register_as :action_cable, auto_patch: false def self.version Gem.loaded_specs['actioncable'] && Gem.loaded_specs['actioncable'].version end def self.loaded? !defined?(::ActionCable).nil? end def self.compatible? super && version >= MINIMUM_VERSION end # enabled by rails integration so should only auto instrument # if detected that it is being used without rails def auto_instrument? !Datadog::Contrib::Rails::Utils.railtie_supported? end def default_configuration Configuration::Settings.new end def patcher Patcher end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems