From fee4ce76949ffd5d32bab780bcf5c45a63973592 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 6 Oct 2024 08:53:27 -0600 Subject: [PATCH] somehow fixes test timeout when run with cover... --- apps/opentelemetry/src/otel_exporter_traces.erl | 2 +- apps/opentelemetry/test/opentelemetry_SUITE.erl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/opentelemetry/src/otel_exporter_traces.erl b/apps/opentelemetry/src/otel_exporter_traces.erl index a8fd7158..c74a5a28 100644 --- a/apps/opentelemetry/src/otel_exporter_traces.erl +++ b/apps/opentelemetry/src/otel_exporter_traces.erl @@ -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). diff --git a/apps/opentelemetry/test/opentelemetry_SUITE.erl b/apps/opentelemetry/test/opentelemetry_SUITE.erl index cb527585..5a7deb95 100644 --- a/apps/opentelemetry/test/opentelemetry_SUITE.erl +++ b/apps/opentelemetry/test/opentelemetry_SUITE.erl @@ -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