Skip to content

Commit

Permalink
fix: aws_lambda test fix (#1383)
Browse files Browse the repository at this point in the history
* fix: aws_lambda test fix

* use assert_equal

* lint
  • Loading branch information
xuan-cao-swi authored Jan 30, 2025
1 parent 5c0b75b commit 4db8fc9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
_(last_span.hex_span_id.size).must_equal 16
_(last_span.hex_trace_id.size).must_equal 32
_(last_span.trace_flags.sampled?).must_equal true
_(last_span.tracestate.to_h.to_s).must_equal '{}'

assert_equal last_span.tracestate, {}
end
end

Expand All @@ -95,7 +96,8 @@
_(last_span.hex_span_id.size).must_equal 16
_(last_span.hex_trace_id.size).must_equal 32
_(last_span.trace_flags.sampled?).must_equal true
_(last_span.tracestate.to_h.to_s).must_equal '{"otel"=>"ff40ea9699e62af2-01"}'

assert_equal last_span.tracestate, { 'otel' => 'ff40ea9699e62af2-01' }
end
event_v1['headers'].delete('traceparent')
event_v1['headers'].delete('tracestate')
Expand Down Expand Up @@ -195,7 +197,8 @@
_(last_span.hex_span_id.size).must_equal 16
_(last_span.hex_trace_id.size).must_equal 32
_(last_span.trace_flags.sampled?).must_equal true
_(last_span.tracestate.to_h.to_s).must_equal '{}'

assert_equal last_span.tracestate, {}
end
end

Expand Down

0 comments on commit 4db8fc9

Please sign in to comment.