Sha256: ea2151a479637a524dcdc94cb1242160c670064b6f7891a115e97e17ab68f3bc

Contents?: true

Size: 820 Bytes

Versions: 9

Compression:

Stored size: 820 Bytes

Contents

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

module Datadog
  module Contrib
    module Qless
      # Description of Qless integration
      class Integration
        include Contrib::Integration

        MINIMUM_VERSION = Gem::Version.new('0.10.0')

        register_as :qless, auto_patch: true

        def self.version
          Gem.loaded_specs['qless'] && Gem.loaded_specs['qless'].version
        end

        def self.loaded?
          !defined?(::Qless).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

9 entries across 9 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.51.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.50.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.49.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.48.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.47.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.46.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.45.0 lib/ddtrace/contrib/qless/integration.rb
ddtrace-0.44.0 lib/ddtrace/contrib/qless/integration.rb