From f200e493ec214d9366387b5ec9a5a5d27f605bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 5 Aug 2025 10:55:54 +0200 Subject: [PATCH] Add a telemetry span over image building threads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ář (cherry picked from commit 661b75c6098182f652a724d3e89b913bac56e579) --- pungi/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pungi/util.py b/pungi/util.py index c47a2796..3045671a 100644 --- a/pungi/util.py +++ b/pungi/util.py @@ -498,7 +498,13 @@ def failable( else: compose.require_deliverable(variant, arch, deliverable, subvariant) try: - yield + with tracing.span( + f"generate-{deliverable}", + variant=variant.uid, + arch=arch, + subvariant=subvariant or "", + ): + yield except Exception as exc: if not can_fail: raise