File tree 1 file changed +6
-3
lines changed
instrumentation/aws_lambda/test/opentelemetry
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 76
76
_ ( last_span . hex_span_id . size ) . must_equal 16
77
77
_ ( last_span . hex_trace_id . size ) . must_equal 32
78
78
_ ( last_span . trace_flags . sampled? ) . must_equal true
79
- _ ( last_span . tracestate . to_h . to_s ) . must_equal '{}'
79
+
80
+ assert_equal last_span . tracestate , { }
80
81
end
81
82
end
82
83
95
96
_ ( last_span . hex_span_id . size ) . must_equal 16
96
97
_ ( last_span . hex_trace_id . size ) . must_equal 32
97
98
_ ( last_span . trace_flags . sampled? ) . must_equal true
98
- _ ( last_span . tracestate . to_h . to_s ) . must_equal '{"otel"=>"ff40ea9699e62af2-01"}'
99
+
100
+ assert_equal last_span . tracestate , { 'otel' => 'ff40ea9699e62af2-01' }
99
101
end
100
102
event_v1 [ 'headers' ] . delete ( 'traceparent' )
101
103
event_v1 [ 'headers' ] . delete ( 'tracestate' )
195
197
_ ( last_span . hex_span_id . size ) . must_equal 16
196
198
_ ( last_span . hex_trace_id . size ) . must_equal 32
197
199
_ ( last_span . trace_flags . sampled? ) . must_equal true
198
- _ ( last_span . tracestate . to_h . to_s ) . must_equal '{}'
200
+
201
+ assert_equal last_span . tracestate , { }
199
202
end
200
203
end
201
204
You can’t perform that action at this time.
0 commit comments