From 6c928afd6a0d274dae0d0a8499e9119e46296bf0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 23 Dec 2024 18:17:23 +0100 Subject: [PATCH] chore: use synchronous batch span This makes sure the spans are emitted at the end of the test and not during the run, making it easier to parse. Change-Id: I37f754f6cc1a48946f371999c9e3da59fcd35a3c --- pytest_mergify/tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_mergify/tracer.py b/pytest_mergify/tracer.py index e2dae85..ec48ebd 100644 --- a/pytest_mergify/tracer.py +++ b/pytest_mergify/tracer.py @@ -75,7 +75,7 @@ def __post_init__(self) -> None: if os.environ.get("PYTEST_MERGIFY_DEBUG"): self.exporter = export.ConsoleSpanExporter() - span_processor = export.SimpleSpanProcessor(self.exporter) + span_processor = SynchronousBatchSpanProcessor(self.exporter) elif utils.strtobool(os.environ.get("_PYTEST_MERGIFY_TEST", "false")): from opentelemetry.sdk.trace.export.in_memory_span_exporter import ( InMemorySpanExporter,