Skip to content

Commit 07bcd93

Browse files
committed
fix: aws_lambda test fix
1 parent 1e9853a commit 07bcd93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation/aws_lambda/test/opentelemetry/instrumentation_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
_(last_span.hex_span_id.size).must_equal 16
7777
_(last_span.hex_trace_id.size).must_equal 32
7878
_(last_span.trace_flags.sampled?).must_equal true
79-
_(last_span.tracestate.to_h.to_s).must_equal '{}'
79+
_(last_span.tracestate.to_h.to_json).must_equal '{}'
8080
end
8181
end
8282

@@ -95,7 +95,7 @@
9595
_(last_span.hex_span_id.size).must_equal 16
9696
_(last_span.hex_trace_id.size).must_equal 32
9797
_(last_span.trace_flags.sampled?).must_equal true
98-
_(last_span.tracestate.to_h.to_s).must_equal '{"otel"=>"ff40ea9699e62af2-01"}'
98+
_(last_span.tracestate.to_h.to_json).must_equal '{"otel":"ff40ea9699e62af2-01"}'
9999
end
100100
event_v1['headers'].delete('traceparent')
101101
event_v1['headers'].delete('tracestate')
@@ -195,7 +195,7 @@
195195
_(last_span.hex_span_id.size).must_equal 16
196196
_(last_span.hex_trace_id.size).must_equal 32
197197
_(last_span.trace_flags.sampled?).must_equal true
198-
_(last_span.tracestate.to_h.to_s).must_equal '{}'
198+
_(last_span.tracestate.to_h.to_json).must_equal '{}'
199199
end
200200
end
201201

0 commit comments

Comments
 (0)