Sha256: 3229e98763539a0f7a06e7a0bf54162c03f08373a5ab6bc321c0869dcd957df4
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
# typed: false 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
5 entries across 5 versions & 1 rubygems