test/tracing/opentracing_test.rb in instana-1.9.6 vs test/tracing/opentracing_test.rb in instana-1.9.7
- old
+ new
@@ -78,17 +78,17 @@
clear_all!
get '/mrlobster'
assert last_response.ok?
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces[0]
assert trace.valid?
# Span validation
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
first_span, second_span, third_span = trace.spans.to_a
assert_equal :rack, first_span.name
assert first_span[:ts].is_a?(Integer)
assert first_span[:ts] > 0
@@ -128,17 +128,17 @@
get '/mrlobster'
assert last_response.ok?
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces[0]
assert trace.valid?
# Span validation
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
first_span = trace.spans.to_a.first
# Make sure context was picked up and continued in the resulting
# trace
assert_equal trace_id, trace.id
@@ -270,16 +270,16 @@
ac_span.finish
entry_span.finish
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces.first
first_span, second_span, third_span = trace.spans.to_a
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
assert trace.valid?
# IDs
assert_equal trace.id, first_span[:t]
assert_equal trace.id, second_span[:t]
@@ -301,14 +301,14 @@
ac_span.finish
entry_span.finish
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces.first
assert trace.valid?
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
first_span, second_span, third_span = trace.spans.to_a
# IDs
assert_equal trace.id, first_span[:t]
@@ -332,14 +332,14 @@
ac_span.finish
entry_span.finish
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces.first
assert trace.valid?
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
first_span, second_span, third_span = trace.spans.to_a
# IDs
assert_equal trace.id, first_span[:t]
@@ -375,14 +375,14 @@
ac_span.finish
entry_span.finish
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces.first
assert trace.valid?
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
assert_equal nil, entry_span_context.baggage[:my_bag]
assert_equal 1, ac_span_context.baggage[:my_bag]
assert_equal 1, av_span_context.baggage[:my_bag]
end
@@ -409,13 +409,13 @@
ac_span.finish
entry_span.finish
traces = ::Instana.processor.queued_traces
- assert_equal 1, traces.count
+ assert_equal 1, traces.length
trace = traces.first
assert trace.valid?
- assert_equal 3, trace.spans.count
+ assert_equal 3, trace.spans.length
# Context
assert_equal true, entry_span_context.baggage.empty?
assert_equal true, entry_span.baggage.empty?