instana 1.193.3.pre1 → 1.195.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +22 -12
  3. data/.gitignore +2 -1
  4. data/.rubocop.yml +7 -0
  5. data/Appraisals +11 -0
  6. data/Gemfile +3 -0
  7. data/LICENSE +2 -1
  8. data/Rakefile +3 -0
  9. data/benchmarks/10k-rack-traces.rb +3 -0
  10. data/benchmarks/Gemfile +4 -0
  11. data/benchmarks/id_generation.rb +4 -0
  12. data/benchmarks/opentracing.rb +4 -0
  13. data/benchmarks/rack_vanilla_vs_traced.rb +3 -0
  14. data/benchmarks/stackprof_rack_tracing.rb +3 -0
  15. data/benchmarks/time_processing.rb +4 -0
  16. data/bin/console +3 -0
  17. data/examples/opentracing.rb +4 -0
  18. data/examples/tracing.rb +4 -0
  19. data/extras/license_header.rb +44 -0
  20. data/gemfiles/aws_30.gemfile +18 -0
  21. data/gemfiles/cuba_30.gemfile +4 -0
  22. data/gemfiles/dalli_20.gemfile +4 -0
  23. data/gemfiles/excon_02.gemfile +4 -0
  24. data/gemfiles/graphql_10.gemfile +4 -0
  25. data/gemfiles/grpc_10.gemfile +4 -0
  26. data/gemfiles/net_http_01.gemfile +4 -0
  27. data/gemfiles/rack_16.gemfile +4 -0
  28. data/gemfiles/rack_20.gemfile +4 -0
  29. data/gemfiles/rails_42.gemfile +5 -0
  30. data/gemfiles/rails_50.gemfile +5 -0
  31. data/gemfiles/rails_52.gemfile +5 -0
  32. data/gemfiles/rails_60.gemfile +5 -0
  33. data/gemfiles/redis_40.gemfile +4 -0
  34. data/gemfiles/resque_122.gemfile +4 -0
  35. data/gemfiles/resque_20.gemfile +4 -0
  36. data/gemfiles/rest_client_16.gemfile +4 -0
  37. data/gemfiles/rest_client_20.gemfile +4 -0
  38. data/gemfiles/roda_20.gemfile +4 -0
  39. data/gemfiles/roda_30.gemfile +4 -0
  40. data/gemfiles/sidekiq_42.gemfile +4 -0
  41. data/gemfiles/sidekiq_50.gemfile +4 -0
  42. data/gemfiles/sinatra_14.gemfile +4 -0
  43. data/instana.gemspec +4 -0
  44. data/lib/instana.rb +3 -0
  45. data/lib/instana/activator.rb +3 -0
  46. data/lib/instana/activators/action_cable.rb +24 -0
  47. data/lib/instana/activators/action_controller_api.rb +21 -0
  48. data/lib/instana/activators/action_controller_base.rb +21 -0
  49. data/lib/instana/activators/action_view.rb +21 -0
  50. data/lib/instana/activators/active_record.rb +21 -0
  51. data/lib/instana/activators/aws_sdk_dynamodb.rb +20 -0
  52. data/lib/instana/activators/cuba.rb +3 -0
  53. data/lib/instana/activators/dalli.rb +3 -0
  54. data/lib/instana/activators/excon.rb +3 -0
  55. data/lib/instana/activators/graphql.rb +3 -0
  56. data/lib/instana/activators/grpc_client.rb +3 -0
  57. data/lib/instana/activators/grpc_server.rb +3 -0
  58. data/lib/instana/activators/net_http.rb +3 -0
  59. data/lib/instana/activators/rack.rb +3 -0
  60. data/lib/instana/activators/rails.rb +3 -0
  61. data/lib/instana/activators/redis.rb +3 -0
  62. data/lib/instana/activators/resque_client.rb +3 -0
  63. data/lib/instana/activators/resque_worker.rb +3 -0
  64. data/lib/instana/activators/rest_client.rb +3 -0
  65. data/lib/instana/activators/roda.rb +3 -0
  66. data/lib/instana/activators/sidekiq_client.rb +3 -0
  67. data/lib/instana/activators/sidekiq_worker.rb +3 -0
  68. data/lib/instana/activators/sinatra.rb +3 -0
  69. data/lib/instana/agent.rb +3 -0
  70. data/lib/instana/agent/helpers.rb +3 -0
  71. data/lib/instana/agent/hooks.rb +3 -0
  72. data/lib/instana/agent/tasks.rb +3 -0
  73. data/lib/instana/base.rb +3 -0
  74. data/lib/instana/collector.rb +3 -0
  75. data/lib/instana/collectors/gc.rb +3 -0
  76. data/lib/instana/collectors/memory.rb +3 -0
  77. data/lib/instana/collectors/thread.rb +3 -0
  78. data/lib/instana/config.rb +6 -0
  79. data/lib/instana/frameworks/cuba.rb +3 -0
  80. data/lib/instana/frameworks/rails.rb +22 -31
  81. data/lib/instana/frameworks/roda.rb +3 -0
  82. data/lib/instana/frameworks/sinatra.rb +3 -0
  83. data/lib/instana/helpers.rb +3 -0
  84. data/lib/instana/instrumentation/action_cable.rb +53 -0
  85. data/lib/instana/instrumentation/action_controller.rb +84 -0
  86. data/lib/instana/instrumentation/action_view.rb +30 -0
  87. data/lib/instana/instrumentation/active_record.rb +50 -0
  88. data/lib/instana/instrumentation/aws_sdk_dynamodb.rb +29 -0
  89. data/lib/instana/instrumentation/dalli.rb +3 -0
  90. data/lib/instana/instrumentation/excon.rb +11 -3
  91. data/lib/instana/instrumentation/graphql.rb +3 -0
  92. data/lib/instana/instrumentation/grpc.rb +3 -0
  93. data/lib/instana/instrumentation/instrumented_request.rb +62 -6
  94. data/lib/instana/instrumentation/net-http.rb +9 -1
  95. data/lib/instana/instrumentation/rack.rb +38 -15
  96. data/lib/instana/instrumentation/redis.rb +3 -0
  97. data/lib/instana/instrumentation/resque.rb +3 -0
  98. data/lib/instana/instrumentation/rest-client.rb +3 -0
  99. data/lib/instana/instrumentation/sidekiq-client.rb +4 -1
  100. data/lib/instana/instrumentation/sidekiq-worker.rb +4 -1
  101. data/lib/instana/opentracing/carrier.rb +3 -0
  102. data/lib/instana/opentracing/tracer.rb +3 -0
  103. data/lib/instana/rack.rb +4 -0
  104. data/lib/instana/secrets.rb +3 -0
  105. data/lib/instana/setup.rb +3 -0
  106. data/lib/instana/thread_local.rb +3 -0
  107. data/lib/instana/tracer.rb +13 -7
  108. data/lib/instana/tracing/processor.rb +3 -0
  109. data/lib/instana/tracing/span.rb +11 -2
  110. data/lib/instana/tracing/span_context.rb +27 -1
  111. data/lib/instana/util.rb +3 -0
  112. data/lib/instana/version.rb +4 -1
  113. data/lib/oj_check.rb +3 -0
  114. data/lib/opentracing.rb +3 -0
  115. data/test/activator_test.rb +3 -0
  116. data/test/agent/agent_test.rb +3 -0
  117. data/test/benchmarks/bench_id_generation.rb +3 -0
  118. data/test/benchmarks/bench_opentracing.rb +3 -0
  119. data/test/config_test.rb +3 -0
  120. data/test/frameworks/cuba_test.rb +3 -0
  121. data/test/frameworks/roda_test.rb +4 -0
  122. data/test/frameworks/sinatra_test.rb +3 -0
  123. data/test/instana_test.rb +3 -0
  124. data/test/instrumentation/aws_test.rb +33 -0
  125. data/test/instrumentation/dalli_test.rb +3 -0
  126. data/test/instrumentation/excon_test.rb +3 -0
  127. data/test/instrumentation/graphql_test.rb +3 -0
  128. data/test/instrumentation/grpc_test.rb +3 -0
  129. data/test/instrumentation/net_http_test.rb +3 -0
  130. data/test/instrumentation/rack_instrumented_request_test.rb +49 -1
  131. data/test/instrumentation/rack_test.rb +144 -0
  132. data/test/instrumentation/rails_action_cable_test.rb +131 -0
  133. data/test/{frameworks/rails/actioncontroller_test.rb → instrumentation/rails_action_controller_test.rb} +40 -21
  134. data/test/instrumentation/rails_action_view_test.rb +151 -0
  135. data/test/instrumentation/rails_active_record_test.rb +122 -0
  136. data/test/instrumentation/redis_test.rb +3 -0
  137. data/test/instrumentation/resque_test.rb +3 -0
  138. data/test/instrumentation/rest_client_test.rb +3 -0
  139. data/test/instrumentation/sidekiq-client_test.rb +3 -0
  140. data/test/instrumentation/sidekiq-worker_test.rb +3 -0
  141. data/test/secrets_test.rb +3 -0
  142. data/test/support/apps/active_record/active_record.rb +24 -0
  143. data/test/support/apps/grpc/boot.rb +3 -0
  144. data/test/support/apps/grpc/grpc_server.rb +3 -0
  145. data/test/support/apps/http_endpoint/boot.rb +3 -0
  146. data/test/support/apps/rails/boot.rb +3 -0
  147. data/test/support/apps/rails/models/block.rb +3 -0
  148. data/test/support/apps/rails/models/block6.rb +3 -0
  149. data/test/support/apps/resque/boot.rb +3 -0
  150. data/test/support/apps/resque/jobs/resque_error_job.rb +3 -0
  151. data/test/support/apps/resque/jobs/resque_fast_job.rb +3 -0
  152. data/test/support/apps/sidekiq/boot.rb +4 -0
  153. data/test/support/apps/sidekiq/jobs/sidekiq_job_1.rb +3 -0
  154. data/test/support/apps/sidekiq/jobs/sidekiq_job_2.rb +3 -0
  155. data/test/support/apps/sidekiq/worker.rb +3 -0
  156. data/test/support/helpers.rb +3 -0
  157. data/test/test_helper.rb +3 -0
  158. data/test/tracing/custom_test.rb +3 -0
  159. data/test/tracing/id_management_test.rb +4 -0
  160. data/test/tracing/opentracing_test.rb +6 -3
  161. data/test/tracing/tracer_async_test.rb +3 -0
  162. data/test/tracing/tracer_test.rb +3 -0
  163. metadata +29 -23
  164. data/lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb +0 -56
  165. data/lib/instana/frameworks/instrumentation/action_controller.rb +0 -194
  166. data/lib/instana/frameworks/instrumentation/action_view.rb +0 -39
  167. data/lib/instana/frameworks/instrumentation/active_record.rb +0 -27
  168. data/lib/instana/frameworks/instrumentation/mysql2_adapter.rb +0 -83
  169. data/lib/instana/frameworks/instrumentation/mysql_adapter.rb +0 -60
  170. data/lib/instana/frameworks/instrumentation/postgresql_adapter.rb +0 -99
  171. data/test/frameworks/rails/actionview3_test.rb +0 -210
  172. data/test/frameworks/rails/actionview4_test.rb +0 -208
  173. data/test/frameworks/rails/actionview5_test.rb +0 -221
  174. data/test/frameworks/rails/activerecord_test.rb +0 -279
  175. data/test/frameworks/rails_test.rb +0 -15
@@ -0,0 +1,122 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2021
3
+
4
+ require 'test_helper'
5
+ require 'support/apps/active_record/active_record'
6
+
7
+ class RailsActiveRecordTest < Minitest::Test
8
+ def setup
9
+ skip unless ENV['DATABASE_URL']
10
+ @connection = ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'])
11
+ ActiveRecord::Migration.suppress_messages do
12
+ ActiveRecord::Migration.run(CreateBlocks, direction: :up)
13
+ end
14
+ end
15
+
16
+ def teardown
17
+ ActiveRecord::Migration.suppress_messages do
18
+ ActiveRecord::Migration.run(CreateBlocks, direction: :down)
19
+ end
20
+ ActiveRecord::Base.remove_connection(@connection)
21
+ end
22
+
23
+ def test_config_defaults
24
+ assert ::Instana.config[:sanitize_sql] == true
25
+ assert ::Instana.config[:active_record].is_a?(Hash)
26
+ assert ::Instana.config[:active_record].key?(:enabled)
27
+ assert_equal true, ::Instana.config[:active_record][:enabled]
28
+ end
29
+
30
+ def test_create
31
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
32
+ Block.create(name: 'core', color: 'blue')
33
+ end
34
+
35
+ spans = ::Instana.processor.queued_spans
36
+ assert_equal 2, spans.length
37
+ span = find_first_span_by_name(spans, :activerecord)
38
+ data = span[:data][:activerecord]
39
+
40
+ assert data[:sql].start_with?('INSERT INTO')
41
+ assert 'core', data[:binds][0]
42
+ assert 'blue', data[:binds][1]
43
+ end
44
+
45
+ def test_read
46
+ Block.create(name: 'core', color: 'blue')
47
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
48
+ Block.find_by(name: 'core')
49
+ end
50
+
51
+ spans = ::Instana.processor.queued_spans
52
+ assert_equal 2, spans.length
53
+ span = find_first_span_by_name(spans, :activerecord)
54
+ data = span[:data][:activerecord]
55
+
56
+ assert data[:sql].start_with?('SELECT')
57
+ assert 'core', data[:binds][0]
58
+ assert 1, data[:binds][1]
59
+ end
60
+
61
+ def test_update
62
+ Block.create(name: 'core', color: 'blue')
63
+ b = Block.find_by(name: 'core')
64
+
65
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
66
+ b.color = 'red'
67
+ b.save
68
+ end
69
+
70
+ spans = ::Instana.processor.queued_spans
71
+ assert_equal 2, spans.length
72
+ span = find_first_span_by_name(spans, :activerecord)
73
+ data = span[:data][:activerecord]
74
+
75
+ assert data[:sql].start_with?('UPDATE')
76
+ assert 'red', data[:binds][0]
77
+ assert 1, data[:binds][2]
78
+ end
79
+
80
+ def test_delete
81
+ b = Block.create(name: 'core', color: 'blue')
82
+
83
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
84
+ b.delete
85
+ end
86
+
87
+ spans = ::Instana.processor.queued_spans
88
+ assert_equal 2, spans.length
89
+ span = find_first_span_by_name(spans, :activerecord)
90
+ data = span[:data][:activerecord]
91
+
92
+ assert data[:sql].start_with?('DELETE')
93
+ assert 1, data[:binds][0]
94
+ end
95
+
96
+ def test_raw
97
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
98
+ ActiveRecord::Base.connection.execute('SELECT 1')
99
+ end
100
+
101
+ spans = ::Instana.processor.queued_spans
102
+ assert_equal 2, spans.length
103
+ span = find_first_span_by_name(spans, :activerecord)
104
+ data = span[:data][:activerecord]
105
+
106
+ assert 'SELECT 1', data[:sql]
107
+ end
108
+
109
+ def test_raw_error
110
+ assert_raises ActiveRecord::StatementInvalid do
111
+ Instana::Tracer.start_or_continue_trace(:ar_test, {}) do
112
+ ActiveRecord::Base.connection.execute('INVALID')
113
+ end
114
+ end
115
+
116
+ spans = ::Instana.processor.queued_spans
117
+ assert_equal 2, spans.length
118
+ span = find_first_span_by_name(spans, :activerecord)
119
+
120
+ assert_equal 1, span[:ec]
121
+ end
122
+ end
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class RedisTest < Minitest::Test
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2018
3
+
1
4
  require 'test_helper'
2
5
  require 'support/apps/resque/boot'
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  require 'test_helper'
2
5
  require 'support/apps/http_endpoint/boot'
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'test_helper'
2
5
  require 'support/apps/sidekiq/boot'
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'test_helper'
2
5
  require 'support/apps/sidekiq/boot'
3
6
 
data/test/secrets_test.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2021
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class SecretsTest < Minitest::Test
@@ -0,0 +1,24 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2021
3
+
4
+ require 'rails'
5
+ require 'active_record/railtie'
6
+
7
+ migration_class = if ActiveRecord::Migration.respond_to?(:[])
8
+ ActiveRecord::Migration[4.2]
9
+ else
10
+ ActiveRecord::Migration
11
+ end
12
+
13
+ class CreateBlocks < migration_class
14
+ def change
15
+ create_table :blocks do |t|
16
+ t.string :name
17
+ t.string :color
18
+ t.timestamps
19
+ end
20
+ end
21
+ end
22
+
23
+ class Block < ActiveRecord::Base
24
+ end
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require_relative 'grpc_server'
2
5
 
3
6
  ::Instana.logger.info "Booting instrumented gRPC server on port 50051 for tests."
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'google/protobuf'
2
5
 
3
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  require 'rack/handler/puma'
2
5
  require 'rack/builder'
3
6
  require 'instana/rack'
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  ::Instana.logger.warn "Starting background Ruby on Rails #{Rails::VERSION::STRING} application on port 3205"
2
5
 
3
6
  require "rails"
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  class Block < ActiveRecord::Base
2
5
  def do_work(*args)
3
6
  block = Block.first
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  class Block < ActiveRecord::Base
2
5
  def do_work(*args)
3
6
  block = Block.first
@@ -1,2 +1,5 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2021
3
+
1
4
  require_relative 'jobs/resque_error_job'
2
5
  require_relative 'jobs/resque_fast_job'
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2018
3
+
1
4
  require "redis"
2
5
  require "net/http"
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2018
3
+
1
4
  require "redis"
2
5
  require "net/http"
3
6
 
@@ -1,4 +1,8 @@
1
1
  # Hook into sidekiq to control the current mode
2
+
3
+ # (c) Copyright IBM Corp. 2021
4
+ # (c) Copyright Instana Inc. 2021
5
+
2
6
  $sidekiq_mode = :client
3
7
  class << Sidekiq
4
8
  def server?
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  class SidekiqJobOne
2
5
  include Sidekiq::Worker
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  class SidekiqJobTwo
2
5
  include Sidekiq::Worker
3
6
 
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'sidekiq/launcher'
2
5
  require 'sidekiq/cli'
3
6
  require 'sidekiq/api'
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # (c) Copyright IBM Corp. 2021
4
+ # (c) Copyright Instana Inc. 2021
5
+
3
6
  module Instana
4
7
  module TestHelpers
5
8
  # Used to reset the gem to boot state. It clears out any queued and/or staged
data/test/test_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  ENV['INSTANA_TEST'] = 'true'
2
5
 
3
6
  begin
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class CustomTracingTest < Minitest::Test
@@ -1,4 +1,8 @@
1
1
 
2
+
3
+ # (c) Copyright IBM Corp. 2021
4
+ # (c) Copyright Instana Inc. 2016
5
+
2
6
  require 'test_helper'
3
7
 
4
8
  class TracerIDMgmtTest < Minitest::Test
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2017
3
+
1
4
  require 'test_helper'
2
5
  require 'rack/test'
3
6
  require 'rack/lobster'
@@ -301,7 +304,7 @@ class OpenTracerTest < Minitest::Test
301
304
  assert_equal second_span[:s], third_span[:p]
302
305
 
303
306
  # Every span should have baggage
304
- assert_equal(nil, entry_span.context.baggage)
307
+ assert_equal({}, entry_span.context.baggage)
305
308
  assert_equal({:my_bag=>1}, ac_span.context.baggage)
306
309
  assert_equal({:my_bag=>1}, av_span.context.baggage)
307
310
  end
@@ -328,9 +331,9 @@ class OpenTracerTest < Minitest::Test
328
331
  spans = ::Instana.processor.queued_spans
329
332
  assert_equal 3, spans.length
330
333
 
331
- assert_equal(nil, entry_span.context.baggage)
334
+ assert_equal({}, entry_span.context.baggage)
332
335
  assert_equal({:my_bag=>1}, ac_span.context.baggage)
333
- assert_equal(nil, av_span.context.baggage)
336
+ assert_equal({}, av_span.context.baggage)
334
337
  end
335
338
 
336
339
  def test_start_active_span
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class TracerAsyncTest < Minitest::Test
@@ -1,3 +1,6 @@
1
+ # (c) Copyright IBM Corp. 2021
2
+ # (c) Copyright Instana Inc. 2016
3
+
1
4
  require 'test_helper'
2
5
 
3
6
  class TracerTest < Minitest::Test
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.193.3.pre1
4
+ version: 1.195.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -170,7 +170,9 @@ files:
170
170
  - bin/setup
171
171
  - examples/opentracing.rb
172
172
  - examples/tracing.rb
173
+ - extras/license_header.rb
173
174
  - gemfiles/.bundle/config
175
+ - gemfiles/aws_30.gemfile
174
176
  - gemfiles/cuba_30.gemfile
175
177
  - gemfiles/dalli_20.gemfile
176
178
  - gemfiles/excon_02.gemfile
@@ -196,6 +198,12 @@ files:
196
198
  - instana.gemspec
197
199
  - lib/instana.rb
198
200
  - lib/instana/activator.rb
201
+ - lib/instana/activators/action_cable.rb
202
+ - lib/instana/activators/action_controller_api.rb
203
+ - lib/instana/activators/action_controller_base.rb
204
+ - lib/instana/activators/action_view.rb
205
+ - lib/instana/activators/active_record.rb
206
+ - lib/instana/activators/aws_sdk_dynamodb.rb
199
207
  - lib/instana/activators/cuba.rb
200
208
  - lib/instana/activators/dalli.rb
201
209
  - lib/instana/activators/excon.rb
@@ -226,17 +234,15 @@ files:
226
234
  - lib/instana/eum/eum-test.js.erb
227
235
  - lib/instana/eum/eum.js.erb
228
236
  - lib/instana/frameworks/cuba.rb
229
- - lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb
230
- - lib/instana/frameworks/instrumentation/action_controller.rb
231
- - lib/instana/frameworks/instrumentation/action_view.rb
232
- - lib/instana/frameworks/instrumentation/active_record.rb
233
- - lib/instana/frameworks/instrumentation/mysql2_adapter.rb
234
- - lib/instana/frameworks/instrumentation/mysql_adapter.rb
235
- - lib/instana/frameworks/instrumentation/postgresql_adapter.rb
236
237
  - lib/instana/frameworks/rails.rb
237
238
  - lib/instana/frameworks/roda.rb
238
239
  - lib/instana/frameworks/sinatra.rb
239
240
  - lib/instana/helpers.rb
241
+ - lib/instana/instrumentation/action_cable.rb
242
+ - lib/instana/instrumentation/action_controller.rb
243
+ - lib/instana/instrumentation/action_view.rb
244
+ - lib/instana/instrumentation/active_record.rb
245
+ - lib/instana/instrumentation/aws_sdk_dynamodb.rb
240
246
  - lib/instana/instrumentation/dalli.rb
241
247
  - lib/instana/instrumentation/excon.rb
242
248
  - lib/instana/instrumentation/graphql.rb
@@ -270,15 +276,10 @@ files:
270
276
  - test/benchmarks/bench_opentracing.rb
271
277
  - test/config_test.rb
272
278
  - test/frameworks/cuba_test.rb
273
- - test/frameworks/rails/actioncontroller_test.rb
274
- - test/frameworks/rails/actionview3_test.rb
275
- - test/frameworks/rails/actionview4_test.rb
276
- - test/frameworks/rails/actionview5_test.rb
277
- - test/frameworks/rails/activerecord_test.rb
278
- - test/frameworks/rails_test.rb
279
279
  - test/frameworks/roda_test.rb
280
280
  - test/frameworks/sinatra_test.rb
281
281
  - test/instana_test.rb
282
+ - test/instrumentation/aws_test.rb
282
283
  - test/instrumentation/dalli_test.rb
283
284
  - test/instrumentation/excon_test.rb
284
285
  - test/instrumentation/graphql_test.rb
@@ -286,12 +287,17 @@ files:
286
287
  - test/instrumentation/net_http_test.rb
287
288
  - test/instrumentation/rack_instrumented_request_test.rb
288
289
  - test/instrumentation/rack_test.rb
290
+ - test/instrumentation/rails_action_cable_test.rb
291
+ - test/instrumentation/rails_action_controller_test.rb
292
+ - test/instrumentation/rails_action_view_test.rb
293
+ - test/instrumentation/rails_active_record_test.rb
289
294
  - test/instrumentation/redis_test.rb
290
295
  - test/instrumentation/resque_test.rb
291
296
  - test/instrumentation/rest_client_test.rb
292
297
  - test/instrumentation/sidekiq-client_test.rb
293
298
  - test/instrumentation/sidekiq-worker_test.rb
294
299
  - test/secrets_test.rb
300
+ - test/support/apps/active_record/active_record.rb
295
301
  - test/support/apps/grpc/boot.rb
296
302
  - test/support/apps/grpc/grpc_server.rb
297
303
  - test/support/apps/http_endpoint/boot.rb
@@ -331,9 +337,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
331
337
  version: '2.1'
332
338
  required_rubygems_version: !ruby/object:Gem::Requirement
333
339
  requirements:
334
- - - ">"
340
+ - - ">="
335
341
  - !ruby/object:Gem::Version
336
- version: 1.3.1
342
+ version: '0'
337
343
  requirements: []
338
344
  rubygems_version: 3.2.6
339
345
  signing_key:
@@ -351,16 +357,21 @@ test_files:
351
357
  - test/secrets_test.rb
352
358
  - test/instrumentation/graphql_test.rb
353
359
  - test/instrumentation/sidekiq-client_test.rb
360
+ - test/instrumentation/rails_action_controller_test.rb
354
361
  - test/instrumentation/rest_client_test.rb
355
362
  - test/instrumentation/net_http_test.rb
356
363
  - test/instrumentation/resque_test.rb
357
364
  - test/instrumentation/sidekiq-worker_test.rb
365
+ - test/instrumentation/rails_action_view_test.rb
358
366
  - test/instrumentation/rack_test.rb
359
367
  - test/instrumentation/rack_instrumented_request_test.rb
368
+ - test/instrumentation/rails_active_record_test.rb
360
369
  - test/instrumentation/redis_test.rb
361
370
  - test/instrumentation/dalli_test.rb
371
+ - test/instrumentation/rails_action_cable_test.rb
362
372
  - test/instrumentation/excon_test.rb
363
373
  - test/instrumentation/grpc_test.rb
374
+ - test/instrumentation/aws_test.rb
364
375
  - test/support/helpers.rb
365
376
  - test/support/apps/sidekiq/boot.rb
366
377
  - test/support/apps/sidekiq/jobs/sidekiq_job_2.rb
@@ -368,6 +379,7 @@ test_files:
368
379
  - test/support/apps/sidekiq/worker.rb
369
380
  - test/support/apps/grpc/boot.rb
370
381
  - test/support/apps/grpc/grpc_server.rb
382
+ - test/support/apps/active_record/active_record.rb
371
383
  - test/support/apps/resque/boot.rb
372
384
  - test/support/apps/resque/jobs/resque_error_job.rb
373
385
  - test/support/apps/resque/jobs/resque_fast_job.rb
@@ -380,11 +392,5 @@ test_files:
380
392
  - test/test_helper.rb
381
393
  - test/frameworks/cuba_test.rb
382
394
  - test/frameworks/roda_test.rb
383
- - test/frameworks/rails_test.rb
384
395
  - test/frameworks/sinatra_test.rb
385
- - test/frameworks/rails/actionview4_test.rb
386
- - test/frameworks/rails/activerecord_test.rb
387
- - test/frameworks/rails/actioncontroller_test.rb
388
- - test/frameworks/rails/actionview5_test.rb
389
- - test/frameworks/rails/actionview3_test.rb
390
396
  - test/instana_test.rb