Sha256: cf1b42c9b3e4224ff09e292d389441d439ff1d349f20fb7275038dbd53f5c56a

Contents?: true

Size: 894 Bytes

Versions: 5

Compression:

Stored size: 894 Bytes

Contents

# typed: false
require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/concurrent_ruby/patcher'
require 'ddtrace/contrib/concurrent_ruby/configuration/settings'

module Datadog
  module Contrib
    module ConcurrentRuby
      # Describes the ConcurrentRuby integration
      class Integration
        include Contrib::Integration

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

        register_as :concurrent_ruby

        def self.version
          Gem.loaded_specs['concurrent-ruby'] && Gem.loaded_specs['concurrent-ruby'].version
        end

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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/concurrent_ruby/integration.rb
ddtrace-0.54.1 lib/ddtrace/contrib/concurrent_ruby/integration.rb
ddtrace-0.54.0 lib/ddtrace/contrib/concurrent_ruby/integration.rb
ddtrace-0.53.0 lib/ddtrace/contrib/concurrent_ruby/integration.rb
ddtrace-0.52.0 lib/ddtrace/contrib/concurrent_ruby/integration.rb