instana 1.9.6 → 1.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Configuration.md +2 -2
  3. data/Troubleshooting.md +1 -1
  4. data/lib/instana/agent.rb +4 -4
  5. data/lib/instana/agent/helpers.rb +2 -2
  6. data/lib/instana/base.rb +0 -16
  7. data/lib/instana/collector.rb +1 -1
  8. data/lib/instana/config.rb +1 -1
  9. data/lib/instana/instrumentation/net-http.rb +1 -1
  10. data/lib/instana/instrumentation/rack.rb +4 -3
  11. data/lib/instana/tracer.rb +4 -5
  12. data/lib/instana/tracing/processor.rb +1 -1
  13. data/lib/instana/tracing/trace.rb +3 -8
  14. data/lib/instana/version.rb +1 -1
  15. data/test/frameworks/rack_test.rb +4 -2
  16. data/test/frameworks/rails/actioncontroller_test.rb +10 -10
  17. data/test/frameworks/rails/actionview3_test.rb +22 -22
  18. data/test/frameworks/rails/actionview4_test.rb +22 -22
  19. data/test/frameworks/rails/actionview5_test.rb +22 -22
  20. data/test/frameworks/rails/activerecord3_test.rb +6 -6
  21. data/test/frameworks/rails/activerecord4_test.rb +6 -6
  22. data/test/frameworks/rails/activerecord5_test.rb +4 -4
  23. data/test/instrumentation/dalli_test.rb +14 -14
  24. data/test/instrumentation/excon_test.rb +7 -7
  25. data/test/instrumentation/grpc_test.rb +2 -2
  26. data/test/instrumentation/net-http_test.rb +7 -7
  27. data/test/instrumentation/redis_test.rb +1 -1
  28. data/test/instrumentation/resque_test.rb +5 -5
  29. data/test/instrumentation/rest-client_test.rb +2 -2
  30. data/test/instrumentation/sidekiq-client_test.rb +2 -2
  31. data/test/instrumentation/sidekiq-worker_test.rb +3 -3
  32. data/test/test_helper.rb +1 -1
  33. data/test/tracing/custom_test.rb +3 -3
  34. data/test/tracing/opentracing_test.rb +14 -14
  35. data/test/tracing/tracer_async_test.rb +3 -3
  36. data/test/tracing/tracer_test.rb +8 -8
  37. metadata +2 -2
@@ -13,10 +13,10 @@ class ActionViewTest < Minitest::Test
13
13
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_view'))
14
14
 
15
15
  traces = Instana.processor.queued_traces
16
- assert_equal 1, traces.count
16
+ assert_equal 1, traces.length
17
17
  trace = traces.first
18
18
 
19
- assert_equal 3, trace.spans.count
19
+ assert_equal 3, trace.spans.length
20
20
  spans = trace.spans.to_a
21
21
  first_span = spans[0]
22
22
  second_span = spans[1]
@@ -33,10 +33,10 @@ class ActionViewTest < Minitest::Test
33
33
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_nothing'))
34
34
 
35
35
  traces = Instana.processor.queued_traces
36
- assert_equal 1, traces.count
36
+ assert_equal 1, traces.length
37
37
  trace = traces.first
38
38
 
39
- assert_equal 3, trace.spans.count
39
+ assert_equal 3, trace.spans.length
40
40
  spans = trace.spans.to_a
41
41
  first_span = spans[0]
42
42
  second_span = spans[1]
@@ -54,10 +54,10 @@ class ActionViewTest < Minitest::Test
54
54
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_file'))
55
55
 
56
56
  traces = Instana.processor.queued_traces
57
- assert_equal 1, traces.count
57
+ assert_equal 1, traces.length
58
58
  trace = traces.first
59
59
 
60
- assert_equal 3, trace.spans.count
60
+ assert_equal 3, trace.spans.length
61
61
  spans = trace.spans.to_a
62
62
  first_span = spans[0]
63
63
  second_span = spans[1]
@@ -75,10 +75,10 @@ class ActionViewTest < Minitest::Test
75
75
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_json'))
76
76
 
77
77
  traces = Instana.processor.queued_traces
78
- assert_equal 1, traces.count
78
+ assert_equal 1, traces.length
79
79
  trace = traces.first
80
80
 
81
- assert_equal 3, trace.spans.count
81
+ assert_equal 3, trace.spans.length
82
82
  spans = trace.spans.to_a
83
83
  first_span = spans[0]
84
84
  second_span = spans[1]
@@ -96,10 +96,10 @@ class ActionViewTest < Minitest::Test
96
96
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_xml'))
97
97
 
98
98
  traces = Instana.processor.queued_traces
99
- assert_equal 1, traces.count
99
+ assert_equal 1, traces.length
100
100
  trace = traces.first
101
101
 
102
- assert_equal 3, trace.spans.count
102
+ assert_equal 3, trace.spans.length
103
103
  spans = trace.spans.to_a
104
104
  first_span = spans[0]
105
105
  second_span = spans[1]
@@ -117,10 +117,10 @@ class ActionViewTest < Minitest::Test
117
117
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_rawbody'))
118
118
 
119
119
  traces = Instana.processor.queued_traces
120
- assert_equal 1, traces.count
120
+ assert_equal 1, traces.length
121
121
  trace = traces.first
122
122
 
123
- assert_equal 3, trace.spans.count
123
+ assert_equal 3, trace.spans.length
124
124
  spans = trace.spans.to_a
125
125
  first_span = spans[0]
126
126
  second_span = spans[1]
@@ -138,10 +138,10 @@ class ActionViewTest < Minitest::Test
138
138
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_js'))
139
139
 
140
140
  traces = Instana.processor.queued_traces
141
- assert_equal 1, traces.count
141
+ assert_equal 1, traces.length
142
142
  trace = traces.first
143
143
 
144
- assert_equal 3, trace.spans.count
144
+ assert_equal 3, trace.spans.length
145
145
  spans = trace.spans.to_a
146
146
  first_span = spans[0]
147
147
  second_span = spans[1]
@@ -159,10 +159,10 @@ class ActionViewTest < Minitest::Test
159
159
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_alternate_layout'))
160
160
 
161
161
  traces = Instana.processor.queued_traces
162
- assert_equal 1, traces.count
162
+ assert_equal 1, traces.length
163
163
  trace = traces.first
164
164
 
165
- assert_equal 3, trace.spans.count
165
+ assert_equal 3, trace.spans.length
166
166
  spans = trace.spans.to_a
167
167
  first_span = spans[0]
168
168
  second_span = spans[1]
@@ -180,10 +180,10 @@ class ActionViewTest < Minitest::Test
180
180
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_partial'))
181
181
 
182
182
  traces = Instana.processor.queued_traces
183
- assert_equal 1, traces.count
183
+ assert_equal 1, traces.length
184
184
  trace = traces.first
185
185
 
186
- assert_equal 4, trace.spans.count
186
+ assert_equal 4, trace.spans.length
187
187
  spans = trace.spans.to_a
188
188
  first_span = spans[0]
189
189
  second_span = spans[1]
@@ -204,10 +204,10 @@ class ActionViewTest < Minitest::Test
204
204
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_partial_that_errors'))
205
205
 
206
206
  traces = Instana.processor.queued_traces
207
- assert_equal 1, traces.count
207
+ assert_equal 1, traces.length
208
208
  trace = traces.first
209
209
 
210
- assert_equal 4, trace.spans.count
210
+ assert_equal 4, trace.spans.length
211
211
  spans = trace.spans.to_a
212
212
  first_span = spans[0]
213
213
  second_span = spans[1]
@@ -232,10 +232,10 @@ class ActionViewTest < Minitest::Test
232
232
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_collection'))
233
233
 
234
234
  traces = Instana.processor.queued_traces
235
- assert_equal 1, traces.count
235
+ assert_equal 1, traces.length
236
236
  trace = traces.first
237
237
 
238
- assert_equal 5, trace.spans.count
238
+ assert_equal 5, trace.spans.length
239
239
  spans = trace.spans.to_a
240
240
  first_span = spans[0]
241
241
  second_span = spans[1]
@@ -13,10 +13,10 @@ class ActionViewTest < Minitest::Test
13
13
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_view'))
14
14
 
15
15
  traces = Instana.processor.queued_traces
16
- assert_equal 1, traces.count
16
+ assert_equal 1, traces.length
17
17
  trace = traces.first
18
18
 
19
- assert_equal 3, trace.spans.count
19
+ assert_equal 3, trace.spans.length
20
20
  spans = trace.spans.to_a
21
21
  first_span = spans[0]
22
22
  second_span = spans[1]
@@ -33,10 +33,10 @@ class ActionViewTest < Minitest::Test
33
33
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_nothing'))
34
34
 
35
35
  traces = Instana.processor.queued_traces
36
- assert_equal 1, traces.count
36
+ assert_equal 1, traces.length
37
37
  trace = traces.first
38
38
 
39
- assert_equal 3, trace.spans.count
39
+ assert_equal 3, trace.spans.length
40
40
  spans = trace.spans.to_a
41
41
  first_span = spans[0]
42
42
  second_span = spans[1]
@@ -54,10 +54,10 @@ class ActionViewTest < Minitest::Test
54
54
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_file'))
55
55
 
56
56
  traces = Instana.processor.queued_traces
57
- assert_equal 1, traces.count
57
+ assert_equal 1, traces.length
58
58
  trace = traces.first
59
59
 
60
- assert_equal 3, trace.spans.count
60
+ assert_equal 3, trace.spans.length
61
61
  spans = trace.spans.to_a
62
62
  first_span = spans[0]
63
63
  second_span = spans[1]
@@ -75,10 +75,10 @@ class ActionViewTest < Minitest::Test
75
75
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_json'))
76
76
 
77
77
  traces = Instana.processor.queued_traces
78
- assert_equal 1, traces.count
78
+ assert_equal 1, traces.length
79
79
  trace = traces.first
80
80
 
81
- assert_equal 3, trace.spans.count
81
+ assert_equal 3, trace.spans.length
82
82
  spans = trace.spans.to_a
83
83
  first_span = spans[0]
84
84
  second_span = spans[1]
@@ -96,10 +96,10 @@ class ActionViewTest < Minitest::Test
96
96
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_xml'))
97
97
 
98
98
  traces = Instana.processor.queued_traces
99
- assert_equal 1, traces.count
99
+ assert_equal 1, traces.length
100
100
  trace = traces.first
101
101
 
102
- assert_equal 3, trace.spans.count
102
+ assert_equal 3, trace.spans.length
103
103
  spans = trace.spans.to_a
104
104
  first_span = spans[0]
105
105
  second_span = spans[1]
@@ -117,10 +117,10 @@ class ActionViewTest < Minitest::Test
117
117
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_rawbody'))
118
118
 
119
119
  traces = Instana.processor.queued_traces
120
- assert_equal 1, traces.count
120
+ assert_equal 1, traces.length
121
121
  trace = traces.first
122
122
 
123
- assert_equal 3, trace.spans.count
123
+ assert_equal 3, trace.spans.length
124
124
  spans = trace.spans.to_a
125
125
  first_span = spans[0]
126
126
  second_span = spans[1]
@@ -138,10 +138,10 @@ class ActionViewTest < Minitest::Test
138
138
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_js'))
139
139
 
140
140
  traces = Instana.processor.queued_traces
141
- assert_equal 1, traces.count
141
+ assert_equal 1, traces.length
142
142
  trace = traces.first
143
143
 
144
- assert_equal 3, trace.spans.count
144
+ assert_equal 3, trace.spans.length
145
145
  spans = trace.spans.to_a
146
146
  first_span = spans[0]
147
147
  second_span = spans[1]
@@ -159,10 +159,10 @@ class ActionViewTest < Minitest::Test
159
159
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_alternate_layout'))
160
160
 
161
161
  traces = Instana.processor.queued_traces
162
- assert_equal 1, traces.count
162
+ assert_equal 1, traces.length
163
163
  trace = traces.first
164
164
 
165
- assert_equal 3, trace.spans.count
165
+ assert_equal 3, trace.spans.length
166
166
  spans = trace.spans.to_a
167
167
  first_span = spans[0]
168
168
  second_span = spans[1]
@@ -180,10 +180,10 @@ class ActionViewTest < Minitest::Test
180
180
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_partial'))
181
181
 
182
182
  traces = Instana.processor.queued_traces
183
- assert_equal 1, traces.count
183
+ assert_equal 1, traces.length
184
184
  trace = traces.first
185
185
 
186
- assert_equal 4, trace.spans.count
186
+ assert_equal 4, trace.spans.length
187
187
  spans = trace.spans.to_a
188
188
  first_span = spans[0]
189
189
  second_span = spans[1]
@@ -204,10 +204,10 @@ class ActionViewTest < Minitest::Test
204
204
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_partial_that_errors'))
205
205
 
206
206
  traces = Instana.processor.queued_traces
207
- assert_equal 1, traces.count
207
+ assert_equal 1, traces.length
208
208
  trace = traces.first
209
209
 
210
- assert_equal 4, trace.spans.count
210
+ assert_equal 4, trace.spans.length
211
211
  spans = trace.spans.to_a
212
212
  first_span = spans[0]
213
213
  second_span = spans[1]
@@ -232,10 +232,10 @@ class ActionViewTest < Minitest::Test
232
232
  Net::HTTP.get(URI.parse('http://localhost:3205/test/render_collection'))
233
233
 
234
234
  traces = Instana.processor.queued_traces
235
- assert_equal 1, traces.count
235
+ assert_equal 1, traces.length
236
236
  trace = traces.first
237
237
 
238
- assert_equal 5, trace.spans.count
238
+ assert_equal 5, trace.spans.length
239
239
  spans = trace.spans.to_a
240
240
  first_span = spans[0]
241
241
  second_span = spans[1]
@@ -20,10 +20,10 @@ class ActiveRecordTest < Minitest::Test
20
20
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
21
21
 
22
22
  traces = Instana.processor.queued_traces
23
- assert_equal 1, traces.count
23
+ assert_equal 1, traces.length
24
24
  trace = traces.first
25
25
 
26
- assert_equal 6, trace.spans.count
26
+ assert_equal 6, trace.spans.length
27
27
  spans = trace.spans.to_a
28
28
  first_span = spans[0]
29
29
  second_span = spans[2]
@@ -60,10 +60,10 @@ class ActiveRecordTest < Minitest::Test
60
60
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
61
61
 
62
62
  traces = Instana.processor.queued_traces
63
- assert_equal 1, traces.count
63
+ assert_equal 1, traces.length
64
64
  trace = traces.first
65
65
 
66
- assert_equal 6, trace.spans.count
66
+ assert_equal 6, trace.spans.length
67
67
  spans = trace.spans.to_a
68
68
  first_span = spans[0]
69
69
  second_span = spans[2]
@@ -100,10 +100,10 @@ class ActiveRecordTest < Minitest::Test
100
100
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
101
101
 
102
102
  traces = Instana.processor.queued_traces
103
- assert_equal 1, traces.count
103
+ assert_equal 1, traces.length
104
104
  trace = traces.first
105
105
 
106
- assert_equal 6, trace.spans.count
106
+ assert_equal 6, trace.spans.length
107
107
  spans = trace.spans.to_a
108
108
  first_span = spans[0]
109
109
  second_span = spans[2]
@@ -20,10 +20,10 @@ class ActiveRecordPgTest < Minitest::Test
20
20
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
21
21
 
22
22
  traces = Instana.processor.queued_traces
23
- assert_equal 1, traces.count
23
+ assert_equal 1, traces.length
24
24
  trace = traces.first
25
25
 
26
- assert_equal 6, trace.spans.count
26
+ assert_equal 6, trace.spans.length
27
27
  spans = trace.spans.to_a
28
28
  first_span = spans[0]
29
29
  second_span = spans[2]
@@ -60,10 +60,10 @@ class ActiveRecordPgTest < Minitest::Test
60
60
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
61
61
 
62
62
  traces = Instana.processor.queued_traces
63
- assert_equal 1, traces.count
63
+ assert_equal 1, traces.length
64
64
  trace = traces.first
65
65
 
66
- assert_equal 6, trace.spans.count
66
+ assert_equal 6, trace.spans.length
67
67
  spans = trace.spans.to_a
68
68
  first_span = spans[0]
69
69
  second_span = spans[2]
@@ -100,10 +100,10 @@ class ActiveRecordPgTest < Minitest::Test
100
100
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
101
101
 
102
102
  traces = Instana.processor.queued_traces
103
- assert_equal 1, traces.count
103
+ assert_equal 1, traces.length
104
104
  trace = traces.first
105
105
 
106
- assert_equal 6, trace.spans.count
106
+ assert_equal 6, trace.spans.length
107
107
  spans = trace.spans.to_a
108
108
  first_span = spans[0]
109
109
  second_span = spans[2]
@@ -16,10 +16,10 @@ class ActiveRecordTest < Minitest::Test
16
16
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
17
17
 
18
18
  traces = Instana.processor.queued_traces
19
- assert_equal 1, traces.count
19
+ assert_equal 1, traces.length
20
20
  trace = traces.first
21
21
 
22
- assert_equal 6, trace.spans.count
22
+ assert_equal 6, trace.spans.length
23
23
  spans = trace.spans.to_a
24
24
  first_span = spans[0]
25
25
  second_span = spans[2]
@@ -56,10 +56,10 @@ class ActiveRecordTest < Minitest::Test
56
56
  Net::HTTP.get(URI.parse('http://localhost:3205/test/db'))
57
57
 
58
58
  traces = Instana.processor.queued_traces
59
- assert_equal 1, traces.count
59
+ assert_equal 1, traces.length
60
60
  trace = traces.first
61
61
 
62
- assert_equal 6, trace.spans.count
62
+ assert_equal 6, trace.spans.length
63
63
  spans = trace.spans.to_a
64
64
  first_span = spans[0]
65
65
  second_span = spans[2]
@@ -25,11 +25,11 @@ class DalliTest < Minitest::Test
25
25
  assert_equal :boom, result
26
26
 
27
27
  traces = Instana.processor.queued_traces
28
- assert_equal 1, traces.count
28
+ assert_equal 1, traces.length
29
29
  trace = traces.first
30
30
 
31
31
  # Excon validation
32
- assert_equal 2, trace.spans.count
32
+ assert_equal 2, trace.spans.length
33
33
  spans = trace.spans.to_a
34
34
  first_span = spans[0]
35
35
  second_span = spans[1]
@@ -61,11 +61,11 @@ class DalliTest < Minitest::Test
61
61
  assert result.is_a?(Integer)
62
62
 
63
63
  traces = Instana.processor.queued_traces
64
- assert_equal 1, traces.count
64
+ assert_equal 1, traces.length
65
65
  trace = traces.first
66
66
 
67
67
  # Excon validation
68
- assert_equal 2, trace.spans.count
68
+ assert_equal 2, trace.spans.length
69
69
  spans = trace.spans.to_a
70
70
  first_span = spans[0]
71
71
  second_span = spans[1]
@@ -98,11 +98,11 @@ class DalliTest < Minitest::Test
98
98
  assert result.is_a?(Integer)
99
99
 
100
100
  traces = Instana.processor.queued_traces
101
- assert_equal 1, traces.count
101
+ assert_equal 1, traces.length
102
102
  trace = traces.first
103
103
 
104
104
  # Excon validation
105
- assert_equal 2, trace.spans.count
105
+ assert_equal 2, trace.spans.length
106
106
  spans = trace.spans.to_a
107
107
  first_span = spans[0]
108
108
  second_span = spans[1]
@@ -135,11 +135,11 @@ class DalliTest < Minitest::Test
135
135
  assert_equal true, result
136
136
 
137
137
  traces = Instana.processor.queued_traces
138
- assert_equal 1, traces.count
138
+ assert_equal 1, traces.length
139
139
  trace = traces.first
140
140
 
141
141
  # Excon validation
142
- assert_equal 2, trace.spans.count
142
+ assert_equal 2, trace.spans.length
143
143
  spans = trace.spans.to_a
144
144
  first_span = spans[0]
145
145
  second_span = spans[1]
@@ -172,11 +172,11 @@ class DalliTest < Minitest::Test
172
172
  assert_equal 1, result
173
173
 
174
174
  traces = Instana.processor.queued_traces
175
- assert_equal 1, traces.count
175
+ assert_equal 1, traces.length
176
176
  trace = traces.first
177
177
 
178
178
  # Excon validation
179
- assert_equal 2, trace.spans.count
179
+ assert_equal 2, trace.spans.length
180
180
  spans = trace.spans.to_a
181
181
  first_span = spans[0]
182
182
  second_span = spans[1]
@@ -209,11 +209,11 @@ class DalliTest < Minitest::Test
209
209
  assert_equal 0, result
210
210
 
211
211
  traces = Instana.processor.queued_traces
212
- assert_equal 1, traces.count
212
+ assert_equal 1, traces.length
213
213
  trace = traces.first
214
214
 
215
215
  # Excon validation
216
- assert_equal 2, trace.spans.count
216
+ assert_equal 2, trace.spans.length
217
217
  spans = trace.spans.to_a
218
218
  first_span = spans[0]
219
219
  second_span = spans[1]
@@ -245,11 +245,11 @@ class DalliTest < Minitest::Test
245
245
  end
246
246
 
247
247
  traces = Instana.processor.queued_traces
248
- assert_equal 1, traces.count
248
+ assert_equal 1, traces.length
249
249
  trace = traces.first
250
250
 
251
251
  # Excon validation
252
- assert_equal 2, trace.spans.count
252
+ assert_equal 2, trace.spans.length
253
253
  spans = trace.spans.to_a
254
254
  first_span = spans[0]
255
255
  second_span = spans[1]