Sha256: a034f994fd4c74a6a65a049cb2a9176e839101f05ae375b4a93af8bf496cfc8a

Contents?: true

Size: 871 Bytes

Versions: 17

Compression:

Stored size: 871 Bytes

Contents

require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/action_cable/configuration/settings'
require 'ddtrace/contrib/action_cable/patcher'

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

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ddtrace-0.44.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.43.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.42.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.41.0 lib/ddtrace/contrib/action_cable/integration.rb
ls-trace-0.2.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.40.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.39.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.38.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.37.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.36.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.35.2 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.35.1 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.35.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.34.2 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.34.1 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.34.0 lib/ddtrace/contrib/action_cable/integration.rb
ddtrace-0.33.1 lib/ddtrace/contrib/action_cable/integration.rb