Sha256: 666199f735f387811726f0fe2b47156af9bed502f47328285742490535a6e59f

Contents?: true

Size: 812 Bytes

Versions: 26

Compression:

Stored size: 812 Bytes

Contents

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

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

        register_as :sequel, auto_patch: false

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

        def self.present?
          super && defined?(::Sequel)
        end

        def self.compatible?
          super && Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.0.0')
        end

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ddtrace-0.26.1 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.28.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.27.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.26.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.25.1 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.25.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.24.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.23.3 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.23.2 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.23.1 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.23.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.22.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.21.2 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.21.1 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.21.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.20.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.19.1 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.19.0 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.18.3 lib/ddtrace/contrib/sequel/integration.rb
ddtrace-0.18.2 lib/ddtrace/contrib/sequel/integration.rb