Skip to content

Commit

Permalink
chore: use synchronous batch span
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jd committed Dec 23, 2024
1 parent 82d3d21 commit 6c928af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_mergify/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c928af

Please sign in to comment.