Sha256: dcbf3e75a6e5512501a9b28b9bfc3678691a50169ed98781ad9500d614c1077a

Contents?: true

Size: 773 Bytes

Versions: 9

Compression:

Stored size: 773 Bytes

Contents

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

module Datadog
  module Contrib
    module GRPC
      # Description of gRPC integration
      class Integration
        include Contrib::Integration

        register_as :grpc, auto_patch: true

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

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

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

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.32.0 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.31.1 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.31.0 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.30.1 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.30.0 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.29.1 lib/ddtrace/contrib/grpc/integration.rb
ls-trace-0.1.1 lib/ddtrace/contrib/grpc/integration.rb
ddtrace-0.29.0 lib/ddtrace/contrib/grpc/integration.rb