tumbi-assembler/pungi/scripts
Lubomír Sedlář d3630bfa6f Record exceptions for top level OTel span
If there is an exception in the code, the cli_main function captures it,
saves the traceback and exits the process.

With the original tracing span, the instrumentation never saw the actual
exception, only SystemExit. This meant the span was not recorded as
failed. (Technically python-opentelemetry 1.31.0 does record it, but
that change was reverted in 1.32.0.)

It is somewhat tricky to structure the code so that the exception is
recorded implicitly. The status update to DOOMED must happen inside the
span (in order to propagate it to the trace). Thus a new function is
exported from the tracing module to record the exception explicitly
before it gets discarded and replaced with the exit.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2025-05-13 11:03:52 +02:00
..
__init__.py cleanup: refactor scripts via entry points 2019-12-10 10:53:31 +08:00
cache_cleanup.py Add script for cleaning up the cache 2023-08-23 07:26:56 +00:00
comps_filter.py Filter out environment groups unmatch given arch 2022-02-22 11:33:25 +08:00
config_dump.py Drop usage of six 2024-11-29 09:29:20 +01:00
config_validate.py Drop usage of six 2024-11-29 09:29:20 +01:00
create_unified_isos.py Format code 2021-03-02 18:31:45 +08:00
fedmsg_notification.py Set the priority in the fedora-messaging notifier 2023-05-03 14:20:57 +02:00
patch_iso.py Support change of the patch-iso temp dir 2020-09-15 15:47:16 +02:00
pungi_gather.py dnf: Load filelists for actual solver too 2024-03-05 13:38:45 +00:00
pungi_koji.py Record exceptions for top level OTel span 2025-05-13 11:03:52 +02:00
report_progress.py Format code base with black 2020-02-05 17:35:47 +08:00
wait_for_signed_ostree_handler.py Port scripts/wait_for_signed_ostree_handler.py to fedora-messaging 2020-06-17 23:28:27 +02:00