std.Thread.setName() is a wrapper around OS-capabilities.
I would argue this is not even really intended to be used for intra-process debug, but rather to have some metadata for OS-level or cross thread inspection (Not saying your usage isnt fine).
I guess what your want is more like a log.span which std.log does not provide.
If you want something like this today, you can pass your “span” as an argument to your function on the group call instead and use that in your debug or log. I would argue against adding debug capabilities to std.Io though?