feat: Add adapters.traceName and re-use at tests (#404)
Move our `traceName` adapter into lib, it is useful at tests but could
also be used by people for debugging. Updated existing tests to use it,
and formatted code afterwards.
authored by