Sha256: 76c67add10cd0c18b4283f2fe419976548de0d6395a9d0fee45ebcad62b5b5bb

Contents?: true

Size: 886 Bytes

Versions: 5

Compression:

Stored size: 886 Bytes

Contents

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

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

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

        register_as :shoryuken

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

        def self.loaded?
          !defined?(::Shoryuken).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/shoryuken/integration.rb
ddtrace-0.54.1 lib/ddtrace/contrib/shoryuken/integration.rb
ddtrace-0.54.0 lib/ddtrace/contrib/shoryuken/integration.rb
ddtrace-0.53.0 lib/ddtrace/contrib/shoryuken/integration.rb
ddtrace-0.52.0 lib/ddtrace/contrib/shoryuken/integration.rb