Sha256: 42812ac12e1fbb37ed6070f11da9657c783eaee4eb8c883b730081436752851b

Contents?: true

Size: 947 Bytes

Versions: 14

Compression:

Stored size: 947 Bytes

Contents

# frozen_string_literal: true

require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/que/ext'
require 'ddtrace/contrib/que/configuration/settings'
require 'ddtrace/contrib/que/patcher'

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

        MINIMUM_VERSION = Gem::Version.new('1.0.0.beta2')

        register_as :que, auto_patch: true

        def self.version
          Gem.loaded_specs[Datadog::Contrib::Que::Ext::APP] &&
            Gem.loaded_specs[Datadog::Contrib::Que::Ext::APP].version
        end

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

14 entries across 14 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.51.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.50.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.49.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.48.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.47.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.46.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.45.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.44.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.43.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.42.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.41.0 lib/ddtrace/contrib/que/integration.rb
ls-trace-0.2.0 lib/ddtrace/contrib/que/integration.rb
ddtrace-0.40.0 lib/ddtrace/contrib/que/integration.rb