instana 1.193.2 → 1.193.3.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +194 -133
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +5 -1147
  5. data/.rubocop_todo.yml +1140 -0
  6. data/Appraisals +96 -0
  7. data/Gemfile +11 -32
  8. data/Rakefile +16 -39
  9. data/bin/console +5 -4
  10. data/gemfiles/.bundle/config +1 -2
  11. data/gemfiles/cuba_30.gemfile +14 -0
  12. data/gemfiles/dalli_20.gemfile +14 -0
  13. data/gemfiles/excon_02.gemfile +14 -0
  14. data/gemfiles/graphql_10.gemfile +14 -0
  15. data/gemfiles/grpc_10.gemfile +14 -0
  16. data/gemfiles/net_http_01.gemfile +13 -0
  17. data/gemfiles/rack_16.gemfile +14 -0
  18. data/gemfiles/rack_20.gemfile +14 -0
  19. data/gemfiles/rails_42.gemfile +16 -0
  20. data/gemfiles/rails_50.gemfile +16 -0
  21. data/gemfiles/rails_52.gemfile +16 -0
  22. data/gemfiles/rails_60.gemfile +16 -0
  23. data/gemfiles/redis_40.gemfile +14 -0
  24. data/gemfiles/resque_122.gemfile +15 -0
  25. data/gemfiles/resque_20.gemfile +14 -0
  26. data/gemfiles/rest_client_16.gemfile +14 -0
  27. data/gemfiles/rest_client_20.gemfile +14 -0
  28. data/gemfiles/roda_20.gemfile +14 -0
  29. data/gemfiles/roda_30.gemfile +14 -0
  30. data/gemfiles/sidekiq_42.gemfile +14 -0
  31. data/gemfiles/sidekiq_50.gemfile +14 -0
  32. data/gemfiles/sinatra_14.gemfile +14 -0
  33. data/instana.gemspec +1 -7
  34. data/lib/instana/activator.rb +41 -0
  35. data/lib/instana/activators/cuba.rb +18 -0
  36. data/lib/instana/activators/dalli.rb +20 -0
  37. data/lib/instana/activators/excon.rb +17 -0
  38. data/lib/instana/activators/graphql.rb +19 -0
  39. data/lib/instana/activators/grpc_client.rb +17 -0
  40. data/lib/instana/activators/grpc_server.rb +17 -0
  41. data/lib/instana/activators/net_http.rb +17 -0
  42. data/lib/instana/activators/rack.rb +13 -0
  43. data/lib/instana/activators/rails.rb +15 -0
  44. data/lib/instana/activators/redis.rb +17 -0
  45. data/lib/instana/activators/resque_client.rb +18 -0
  46. data/lib/instana/activators/resque_worker.rb +30 -0
  47. data/lib/instana/activators/rest_client.rb +17 -0
  48. data/lib/instana/activators/roda.rb +18 -0
  49. data/lib/instana/activators/sidekiq_client.rb +21 -0
  50. data/lib/instana/activators/sidekiq_worker.rb +21 -0
  51. data/lib/instana/activators/sinatra.rb +18 -0
  52. data/lib/instana/frameworks/cuba.rb +6 -13
  53. data/lib/instana/frameworks/rails.rb +0 -1
  54. data/lib/instana/frameworks/roda.rb +7 -13
  55. data/lib/instana/frameworks/sinatra.rb +1 -8
  56. data/lib/instana/instrumentation/dalli.rb +0 -6
  57. data/lib/instana/instrumentation/excon.rb +51 -57
  58. data/lib/instana/instrumentation/graphql.rb +16 -18
  59. data/lib/instana/instrumentation/grpc.rb +4 -10
  60. data/lib/instana/instrumentation/instrumented_request.rb +2 -1
  61. data/lib/instana/instrumentation/net-http.rb +2 -5
  62. data/lib/instana/instrumentation/rack.rb +1 -0
  63. data/lib/instana/instrumentation/redis.rb +0 -5
  64. data/lib/instana/instrumentation/resque.rb +0 -25
  65. data/lib/instana/instrumentation/rest-client.rb +0 -5
  66. data/lib/instana/instrumentation/sidekiq-client.rb +0 -9
  67. data/lib/instana/instrumentation/sidekiq-worker.rb +0 -9
  68. data/lib/instana/setup.rb +3 -1
  69. data/lib/instana/version.rb +1 -1
  70. data/test/activator_test.rb +27 -0
  71. data/test/frameworks/cuba_test.rb +38 -40
  72. data/test/frameworks/rails/activerecord_test.rb +13 -13
  73. data/test/frameworks/rails_test.rb +15 -0
  74. data/test/frameworks/roda_test.rb +39 -41
  75. data/test/frameworks/sinatra_test.rb +61 -64
  76. data/test/instrumentation/excon_test.rb +1 -0
  77. data/test/instrumentation/grpc_test.rb +2 -1
  78. data/test/instrumentation/{net-http_test.rb → net_http_test.rb} +1 -0
  79. data/test/instrumentation/{instrumented_request_test.rb → rack_instrumented_request_test.rb} +1 -1
  80. data/test/{frameworks → instrumentation}/rack_test.rb +0 -1
  81. data/test/instrumentation/resque_test.rb +3 -11
  82. data/test/instrumentation/{rest-client_test.rb → rest_client_test.rb} +6 -0
  83. data/test/instrumentation/sidekiq-client_test.rb +1 -0
  84. data/test/instrumentation/sidekiq-worker_test.rb +1 -0
  85. data/test/{servers/grpc_50051.rb → support/apps/grpc/boot.rb} +1 -1
  86. data/test/{apps → support/apps/grpc}/grpc_server.rb +0 -0
  87. data/test/{servers/rackapp_6511.rb → support/apps/http_endpoint/boot.rb} +0 -0
  88. data/test/{servers/rails_3205.rb → support/apps/rails/boot.rb} +8 -14
  89. data/test/{models → support/apps/rails/models}/block.rb +1 -1
  90. data/test/{models → support/apps/rails/models}/block6.rb +0 -0
  91. data/test/support/apps/resque/boot.rb +2 -0
  92. data/test/{jobs → support/apps/resque/jobs}/resque_error_job.rb +0 -0
  93. data/test/{jobs → support/apps/resque/jobs}/resque_fast_job.rb +0 -0
  94. data/test/support/apps/sidekiq/boot.rb +21 -0
  95. data/test/{jobs → support/apps/sidekiq/jobs}/sidekiq_job_1.rb +0 -0
  96. data/test/{jobs → support/apps/sidekiq/jobs}/sidekiq_job_2.rb +0 -0
  97. data/test/{servers → support/apps}/sidekiq/worker.rb +2 -2
  98. data/test/support/helpers.rb +94 -0
  99. data/test/test_helper.rb +24 -138
  100. metadata +89 -81
  101. data/gemfiles/libraries.gemfile +0 -73
  102. data/gemfiles/rails32.gemfile +0 -51
  103. data/gemfiles/rails42.gemfile +0 -50
  104. data/gemfiles/rails50.gemfile +0 -52
  105. data/gemfiles/rails52.gemfile +0 -52
  106. data/gemfiles/rails60.gemfile +0 -72
  107. data/lib/instana/instrumentation.rb +0 -25
  108. data/lib/instana/test.rb +0 -43
  109. data/test/apps/cuba.rb +0 -19
  110. data/test/apps/roda.rb +0 -13
  111. data/test/apps/sinatra.rb +0 -9
  112. data/test/servers/helpers/sidekiq_worker_initializer.rb +0 -27
@@ -0,0 +1,17 @@
1
+ module Instana
2
+ module Activators
3
+ class RestClient < Activator
4
+ def can_instrument?
5
+ defined?(::RestClient::Request) && ::Instana.config[:'rest-client'][:enabled]
6
+ end
7
+
8
+ def instrument
9
+ require 'instana/instrumentation/rest-client'
10
+
11
+ ::RestClient::Request.prepend ::Instana::Instrumentation::RestClientRequest
12
+
13
+ true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,18 @@
1
+ module Instana
2
+ module Activators
3
+ class Roda < Activator
4
+ def can_instrument?
5
+ defined?(::Instana::Rack) && defined?(::Roda)
6
+ end
7
+
8
+ def instrument
9
+ require 'instana/frameworks/roda'
10
+
11
+ ::Roda.use ::Instana::Rack
12
+ ::Roda.plugin ::Instana::RodaPathTemplateExtractor
13
+
14
+ true
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,21 @@
1
+ module Instana
2
+ module Activators
3
+ class SidekiqClient < Activator
4
+ def can_instrument?
5
+ defined?(::Sidekiq) && ::Instana.config[:'sidekiq-client'][:enabled]
6
+ end
7
+
8
+ def instrument
9
+ require 'instana/instrumentation/sidekiq-client'
10
+
11
+ ::Sidekiq.configure_client do |cfg|
12
+ cfg.client_middleware do |chain|
13
+ chain.add ::Instana::Instrumentation::SidekiqClient
14
+ end
15
+ end
16
+
17
+ true
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Instana
2
+ module Activators
3
+ class SidekiqWorker < Activator
4
+ def can_instrument?
5
+ defined?(::Sidekiq) && ::Instana.config[:'sidekiq-worker'][:enabled]
6
+ end
7
+
8
+ def instrument
9
+ require 'instana/instrumentation/sidekiq-worker'
10
+
11
+ ::Sidekiq.configure_server do |cfg|
12
+ cfg.server_middleware do |chain|
13
+ chain.add ::Instana::Instrumentation::SidekiqWorker
14
+ end
15
+ end
16
+
17
+ true
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ module Instana
2
+ module Activators
3
+ class Sinatra < Activator
4
+ def can_instrument?
5
+ defined?(::Instana::Rack) && defined?(::Sinatra)
6
+ end
7
+
8
+ def instrument
9
+ require 'instana/frameworks/sinatra'
10
+
11
+ ::Sinatra::Base.use ::Instana::Rack
12
+ ::Sinatra::Base.register ::Instana::SinatraPathTemplateExtractor
13
+
14
+ true
15
+ end
16
+ end
17
+ end
18
+ end
@@ -3,23 +3,23 @@ require "instana/rack"
3
3
  module Instana
4
4
  module CubaPathTemplateExtractor
5
5
  REPLACE_TARGET = /:(?<term>[^\/]+)/i
6
-
6
+
7
7
  def self.prepended(base)
8
8
  ::Instana.logger.debug "#{base} prepended #{self}"
9
9
  end
10
-
11
- def on(*args, &blk)
10
+
11
+ def on(*args, &blk)
12
12
  wrapper = lambda do |*caputres|
13
13
  env['INSTANA_PATH_TEMPLATE_FRAGMENTS'] << args
14
14
  .select { |a| a.is_a?(String) }
15
15
  .join('/')
16
-
16
+
17
17
  blk.call(*captures)
18
18
  end
19
-
19
+
20
20
  super(*args, &wrapper)
21
21
  end
22
-
22
+
23
23
  def call!(env)
24
24
  env['INSTANA_PATH_TEMPLATE_FRAGMENTS'] = []
25
25
  response = super(env)
@@ -30,10 +30,3 @@ module Instana
30
30
  end
31
31
  end
32
32
  end
33
-
34
-
35
- if defined?(::Cuba)
36
- ::Instana.logger.debug "Instrumenting Cuba"
37
- Cuba.use ::Instana::Rack
38
- Cuba.prepend ::Instana::CubaPathTemplateExtractor
39
- end
@@ -1,7 +1,6 @@
1
1
  require "instana/rack"
2
2
 
3
3
  if defined?(::Rails)
4
-
5
4
  if ::Rails::VERSION::MAJOR < 3
6
5
  ::Rails.configuration.after_initialize do
7
6
  # In Rails, let's use the Rails logger
@@ -4,11 +4,11 @@ module Instana
4
4
  module RodaPathTemplateExtractor
5
5
  module RequestMethods
6
6
  TERM = defined?(::Roda) ? ::Roda::RodaPlugins::Base::RequestMethods::TERM : Object
7
-
7
+
8
8
  def if_match(args, &blk)
9
9
  path = @remaining_path
10
10
  captures = @captures.clear
11
-
11
+
12
12
  if match_all(args)
13
13
  (env['INSTANA_PATH_TEMPLATE_FRAGMENTS'] ||= []).concat(named_args(args, blk))
14
14
  block_result(blk.(*captures))
@@ -21,10 +21,10 @@ module Instana
21
21
  false
22
22
  end
23
23
  end
24
-
25
- def named_args(args, blk)
26
- parameters = blk.parameters
27
- args.map do |a|
24
+
25
+ def named_args(args, blk)
26
+ parameters = blk.parameters
27
+ args.map do |a|
28
28
  case a
29
29
  when String
30
30
  a
@@ -35,13 +35,7 @@ module Instana
35
35
  "{#{name}}"
36
36
  end
37
37
  end.compact
38
- end
38
+ end
39
39
  end
40
40
  end
41
41
  end
42
-
43
- if defined?(::Roda)
44
- ::Instana.logger.debug "Instrumenting Roda"
45
- Roda.use ::Instana::Rack
46
- Roda.plugin ::Instana::RodaPathTemplateExtractor
47
- end
@@ -6,10 +6,9 @@ require "instana/rack"
6
6
  module Instana
7
7
  module SinatraPathTemplateExtractor
8
8
  def self.extended(base)
9
- ::Instana.logger.debug "#{base} extended #{self}"
10
9
  base.store_path_template
11
10
  end
12
-
11
+
13
12
  def store_path_template
14
13
  after do
15
14
  @env["INSTANA_HTTP_PATH_TEMPLATE"] = @env["sinatra.route"]
@@ -18,9 +17,3 @@ module Instana
18
17
  end
19
18
  end
20
19
  end
21
-
22
- if defined?(::Sinatra)
23
- ::Instana.logger.debug "Instrumenting Sinatra"
24
- ::Sinatra::Base.use ::Instana::Rack
25
- ::Sinatra::Base.register ::Instana::SinatraPathTemplateExtractor
26
- end
@@ -69,9 +69,3 @@ module Instana
69
69
  end
70
70
  end
71
71
  end
72
-
73
- if defined?(::Dalli) && ::Instana.config[:dalli][:enabled]
74
- ::Instana.logger.debug "Instrumenting Dalli"
75
- ::Dalli::Client.send(:prepend, ::Instana::Instrumentation::Dalli)
76
- ::Dalli::Server.send(:prepend, ::Instana::Instrumentation::DalliServer)
77
- end
@@ -1,74 +1,68 @@
1
- if defined?(::Excon) && ::Instana.config[:excon][:enabled]
2
- module Instana
3
- module Instrumentation
4
- class Excon < ::Excon::Middleware::Base
5
- def request_call(datum)
6
- return @stack.request_call(datum) unless ::Instana.tracer.tracing?
1
+ module Instana
2
+ module Instrumentation
3
+ class Excon < ::Excon::Middleware::Base
4
+ def request_call(datum)
5
+ return @stack.request_call(datum) unless ::Instana.tracer.tracing?
7
6
 
8
- payload = { :http => {} }
9
- path = datum[:path].split('?').first
10
- payload[:http][:url] = ::Instana.secrets.remove_from_query("#{datum[:connection].instance_variable_get(:@socket_key)}#{path}")
11
- payload[:http][:method] = datum[:method] if datum.key?(:method)
7
+ payload = { :http => {} }
8
+ path = datum[:path].split('?').first
9
+ payload[:http][:url] = ::Instana.secrets.remove_from_query("#{datum[:connection].instance_variable_get(:@socket_key)}#{path}")
10
+ payload[:http][:method] = datum[:method] if datum.key?(:method)
12
11
 
13
- if datum[:pipeline] == true
14
- # Pass the context along in the datum so we get back on response
15
- # and can close out the async span
16
- datum[:instana_span] = ::Instana.tracer.log_async_entry(:excon, payload)
17
- t_context = datum[:instana_span].context
18
- else
19
- ::Instana.tracer.log_entry(:excon, payload)
20
- t_context = ::Instana.tracer.context
21
- end
12
+ if datum[:pipeline] == true
13
+ # Pass the context along in the datum so we get back on response
14
+ # and can close out the async span
15
+ datum[:instana_span] = ::Instana.tracer.log_async_entry(:excon, payload)
16
+ t_context = datum[:instana_span].context
17
+ else
18
+ ::Instana.tracer.log_entry(:excon, payload)
19
+ t_context = ::Instana.tracer.context
20
+ end
22
21
 
23
- # Set request headers; encode IDs as hexadecimal strings
24
- datum[:headers]['X-Instana-T'] = t_context.trace_id_header
25
- datum[:headers]['X-Instana-S'] = t_context.span_id_header
22
+ # Set request headers; encode IDs as hexadecimal strings
23
+ datum[:headers]['X-Instana-T'] = t_context.trace_id_header
24
+ datum[:headers]['X-Instana-S'] = t_context.span_id_header
26
25
 
27
- @stack.request_call(datum)
28
- end
26
+ @stack.request_call(datum)
27
+ end
29
28
 
30
- def error_call(datum)
31
- return @stack.error_call(datum) unless ::Instana.tracer.tracing?
29
+ def error_call(datum)
30
+ return @stack.error_call(datum) unless ::Instana.tracer.tracing?
32
31
 
33
- if datum[:pipeline] == true
34
- ::Instana.tracer.log_async_error(datum[:error], datum[:instana_span])
35
- else
36
- ::Instana.tracer.log_error(datum[:error])
37
- end
38
- @stack.error_call(datum)
32
+ if datum[:pipeline] == true
33
+ ::Instana.tracer.log_async_error(datum[:error], datum[:instana_span])
34
+ else
35
+ ::Instana.tracer.log_error(datum[:error])
39
36
  end
37
+ @stack.error_call(datum)
38
+ end
40
39
 
41
- def response_call(datum)
42
- # FIXME: Will connect exceptions call a response?
43
- #
44
- return @stack.response_call(datum) unless ::Instana.tracer.tracing?
40
+ def response_call(datum)
41
+ # FIXME: Will connect exceptions call a response?
42
+ #
43
+ return @stack.response_call(datum) unless ::Instana.tracer.tracing?
45
44
 
46
- result = @stack.response_call(datum)
45
+ result = @stack.response_call(datum)
47
46
 
48
- status = datum[:status]
49
- if !status && datum.key?(:response) && datum[:response].is_a?(Hash)
50
- status = datum[:response][:status]
51
- end
47
+ status = datum[:status]
48
+ if !status && datum.key?(:response) && datum[:response].is_a?(Hash)
49
+ status = datum[:response][:status]
50
+ end
52
51
 
53
- if status.between?(500, 511)
54
- # Because of the 5xx response, we flag this span as errored but
55
- # without a backtrace (no exception)
56
- ::Instana.tracer.log_error(nil)
57
- end
52
+ if status.between?(500, 511)
53
+ # Because of the 5xx response, we flag this span as errored but
54
+ # without a backtrace (no exception)
55
+ ::Instana.tracer.log_error(nil)
56
+ end
58
57
 
59
- if datum[:pipeline] == true
60
- # Pickup context of this async span from datum[:instana_span]
61
- ::Instana.tracer.log_async_exit(:excon, { :http => {:status => status } }, datum[:instana_span])
62
- else
63
- ::Instana.tracer.log_exit(:excon, { :http => {:status => status } })
64
- end
65
- result
58
+ if datum[:pipeline] == true
59
+ # Pickup context of this async span from datum[:instana_span]
60
+ ::Instana.tracer.log_async_exit(:excon, { :http => {:status => status } }, datum[:instana_span])
61
+ else
62
+ ::Instana.tracer.log_exit(:excon, { :http => {:status => status } })
66
63
  end
64
+ result
67
65
  end
68
66
  end
69
67
  end
70
-
71
- ::Instana.logger.debug "Instrumenting Excon"
72
- ::Excon.defaults[:middlewares].unshift(::Instana::Instrumentation::Excon)
73
68
  end
74
-
@@ -1,5 +1,5 @@
1
- if defined?(GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && ::Instana.config[:graphql][:enabled]
2
- module Instana
1
+ module Instana
2
+ module Instrumentation
3
3
  class GraphqlTracing < GraphQL::Tracing::PlatformTracing
4
4
  self.platform_keys = {
5
5
  'lex' => 'lex.graphql',
@@ -11,26 +11,26 @@ if defined?(GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && :
11
11
  'execute_query' => 'execute.graphql',
12
12
  'execute_query_lazy' => 'execute.graphql',
13
13
  }
14
-
15
- def platform_trace(platform_key, key, data)
16
- return yield unless key == 'execute_query'
14
+
15
+ def platform_trace(platform_key, key, data)
16
+ return yield unless key == 'execute_query'
17
17
  operation = data[:query].selected_operation
18
-
18
+
19
19
  arguments = []
20
20
  fields = []
21
-
21
+
22
22
  operation.selections.each do |field|
23
23
  arguments.concat(walk_fields(field, :arguments))
24
- fields.concat(walk_fields(field, :selections))
24
+ fields.concat(walk_fields(field, :selections))
25
25
  end
26
-
26
+
27
27
  payload = {
28
28
  operationName: data[:query].operation_name || 'anonymous',
29
29
  operationType: operation.operation_type,
30
30
  arguments: grouped_fields(arguments),
31
31
  fields: grouped_fields(fields),
32
32
  }
33
-
33
+
34
34
  begin
35
35
  ::Instana.tracer.log_entry(:'graphql.server')
36
36
  yield
@@ -41,11 +41,11 @@ if defined?(GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && :
41
41
  ::Instana.tracer.log_exit(:'graphql.server', {graphql: payload})
42
42
  end
43
43
  end
44
-
44
+
45
45
  def platform_field_key(type, field)
46
46
  "#{type.graphql_name}.#{field.graphql_name}"
47
47
  end
48
-
48
+
49
49
  def platform_authorized_key(type)
50
50
  "#{type.graphql_name}.authorized.graphql"
51
51
  end
@@ -53,17 +53,17 @@ if defined?(GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && :
53
53
  def platform_resolve_type_key(type)
54
54
  "#{type.graphql_name}.resolve_type.graphql"
55
55
  end
56
-
56
+
57
57
  private
58
-
58
+
59
59
  def walk_fields(parent, method)
60
60
  return [] unless parent.respond_to?(method)
61
-
61
+
62
62
  parent.send(method).map do |field|
63
63
  [{object: parent.name, field: field.name}] + walk_fields(field, method)
64
64
  end.flatten
65
65
  end
66
-
66
+
67
67
  def grouped_fields(fields)
68
68
  fields
69
69
  .group_by { |p| p[:object] }
@@ -72,6 +72,4 @@ if defined?(GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && :
72
72
  end
73
73
  end
74
74
  end
75
-
76
- ::GraphQL::Schema.use(::Instana::GraphqlTracing)
77
75
  end
@@ -1,7 +1,7 @@
1
1
  call_types = [:request_response, :client_streamer, :server_streamer, :bidi_streamer]
2
2
 
3
- if defined?(GRPC::ActiveCall) && ::Instana.config[:grpc][:enabled]
4
- module Instana
3
+ module Instana
4
+ module Instrumentation
5
5
  module GRPCCientInstrumentation
6
6
  CALL_TYPES = [:request_response, :client_streamer, :server_streamer, :bidi_streamer]
7
7
 
@@ -42,13 +42,10 @@ if defined?(GRPC::ActiveCall) && ::Instana.config[:grpc][:enabled]
42
42
  end
43
43
  end
44
44
  end
45
-
46
- ::Instana.logger.debug 'Instrumenting GRPC client'
47
- ::GRPC::ClientStub.prepend(::Instana::GRPCCientInstrumentation)
48
45
  end
49
46
 
50
- if defined?(GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
51
- module Instana
47
+ module Instana
48
+ module Instrumentation
52
49
  module GRPCServerInstrumentation
53
50
  CALL_TYPES = [:request_response, :client_streamer, :server_streamer, :bidi_streamer]
54
51
 
@@ -88,7 +85,4 @@ if defined?(GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
88
85
  end
89
86
  end
90
87
  end
91
-
92
- ::Instana.logger.debug 'Instrumenting GRPC server'
93
- ::GRPC::RpcDesc.prepend(::Instana::GRPCServerInstrumentation)
94
88
  end