Skip to content

Commit

Permalink
somehow fixes test timeout when run with cover...
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Oct 6, 2024
1 parent 90f047b commit fee4ce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/opentelemetry/src/otel_exporter_traces.erl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ init(Opts) ->
otel_exporter:init(Opts).

export({ExporterModule, Config}, SpansTid, Resource) ->
ExporterModule:export(traces, SpansTid, Resource, Config).
ExporterModule:export(SpansTid, Resource, Config).

shutdown(Exporter) ->
otel_exporter:shutdown(Exporter).
3 changes: 3 additions & 0 deletions apps/opentelemetry/test/opentelemetry_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ multiple_tracer_providers(_Config) ->
receive
{span, Span} ->
?assertEqual(<<"span-1">>, Span#span.name)
after
1000 ->
ct:fail(failed)
end,

%% now a span with the tracer from the non-global tracer provider
Expand Down

0 comments on commit fee4ce7

Please sign in to comment.