Add a telemetry span over image building threads

Currently there is pretty much no structure under the toplevel
run-compose span. It's a mess of random Koji calls. This change should
group spans related to a particular image build.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
(cherry picked from commit 661b75c6098182f652a724d3e89b913bac56e579)
This commit is contained in:
Lubomír Sedlář 2025-08-05 10:55:54 +02:00 committed by Stepan Oksanichenko
parent 603527c6cc
commit f200e493ec

View File

@ -498,7 +498,13 @@ def failable(
else: else:
compose.require_deliverable(variant, arch, deliverable, subvariant) compose.require_deliverable(variant, arch, deliverable, subvariant)
try: try:
yield with tracing.span(
f"generate-{deliverable}",
variant=variant.uid,
arch=arch,
subvariant=subvariant or "",
):
yield
except Exception as exc: except Exception as exc:
if not can_fail: if not can_fail:
raise raise