Skip to content

Commit a9fefea

Browse files
gugahoaGustavo Aguiar
authored andcommitted
improve test setup
1 parent 4450771 commit a9fefea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processors/opentelemetry_baggage_processor/test/otel_baggage_processor_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ baggage_handling(_Config) ->
3636
Ctx = otel_ctx:get_current(),
3737
Ctx2 = otel_baggage:set(Ctx, <<"key">>, <<"value">>),
3838
_Token = otel_ctx:attach(Ctx2),
39-
SpanCtx2 = ?start_span(<<"span-2">>),
39+
SpanCtx2 = ?start_span(<<"span-2">>, #{attributes => #{<<"existing-attribute">> => true}}),
4040
?end_span(),
4141
?set_current_span(SpanCtx2),
4242
?end_span(),
4343
Attributes = get_span_attributes(<<"span-1">>),
4444
?assertEqual(Attributes, #{}),
4545
Attributes2 = get_span_attributes(<<"span-2">>),
46-
?assertEqual(Attributes2, #{<<"key">> => <<"value">>}),
46+
?assertEqual(Attributes2, #{<<"key">> => <<"value">>, <<"existing-attribute">> => true}),
4747
ok.
4848

4949
get_span_attributes(Name) ->

0 commit comments

Comments
 (0)