test/tracing/custom_test.rb in instana-1.7.8 vs test/tracing/custom_test.rb in instana-1.7.9

- old
+ new

@@ -28,12 +28,13 @@ assert first_span[:d].between?(0, 5) assert first_span.key?(:data) assert first_span[:data].key?(:sdk) assert first_span[:data][:sdk].key?(:custom) + assert first_span[:data][:sdk][:custom].key?(:tags) assert_equal :custom_trace, first_span[:data][:sdk][:name] - assert_equal 1, first_span[:data][:sdk][:custom][:one] + assert_equal 1, first_span[:data][:sdk][:custom][:tags][:one] assert_equal :ruby, first_span[:ta] assert first_span.key?(:f) assert first_span[:f].key?(:e) assert first_span[:f].key?(:h) @@ -83,17 +84,18 @@ assert_equal :sdk, second_span[:n] assert second_span.key?(:data) assert second_span[:data].key?(:sdk) assert second_span[:data][:sdk].key?(:custom) + assert second_span[:data][:sdk][:custom].key?(:tags) assert :custom_span, second_span[:data][:sdk][:name] assert :unknown, second_span[:data][:sdk][:type] assert [[1, 2, 3], "test_arg", :ok], second_span[:data][:sdk][:arguments] assert true, second_span[:data][:sdk][:return] - assert_equal 1, second_span[:data][:sdk][:custom][:on_entry_kv] - assert_equal 1, second_span[:data][:sdk][:custom][:on_info_kv] - assert_equal 1, second_span[:data][:sdk][:custom][:on_exit_kv] + assert_equal 1, second_span[:data][:sdk][:custom][:tags][:on_entry_kv] + assert_equal 1, second_span[:data][:sdk][:custom][:tags][:on_info_kv] + assert_equal 1, second_span[:data][:sdk][:custom][:tags][:on_exit_kv] end def test_custom_tracing_with_error clear_all! assert_equal false, ::Instana.tracer.tracing? @@ -146,16 +148,17 @@ assert_equal :sdk, second_span[:n] assert second_span.key?(:data) assert second_span[:data].key?(:sdk) assert second_span[:data][:sdk].key?(:custom) + assert second_span[:data][:sdk][:custom].key?(:tags) assert :custom_span, second_span[:data][:sdk][:name] assert :unknown, second_span[:data][:sdk][:type] assert [[1, 2, 3], "test_arg", :ok], second_span[:data][:sdk][:arguments] assert true, second_span[:data][:sdk][:return] - assert_equal 1, second_span[:data][:sdk][:custom][:on_entry_kv] - assert !second_span[:data][:sdk][:custom].key?(:on_info_kv) - assert_equal 1, second_span[:data][:sdk][:custom][:on_exit_kv] + assert_equal 1, second_span[:data][:sdk][:custom][:tags][:on_entry_kv] + assert !second_span[:data][:sdk][:custom][:tags].key?(:on_info_kv) + assert_equal 1, second_span[:data][:sdk][:custom][:tags][:on_exit_kv] # Check the error assert_equal true, second_span[:error] assert_equal 1, second_span[:ec] end