taproot-assets icon indicating copy to clipboard operation
taproot-assets copied to clipboard

[feature]: add goroutine IDs to logs for sections where we use worker pools

Open jharveyb opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

We use worker pools in a few spots, via fn.ParSlice or other means. The logs do not indicate which goroutine generated which logs, which makes finding the root cause for an issue more difficult.

Describe the solution you'd like

If we generate a unique ID for each goroutine before entering these parallel sections, and add it the logs, that would aid debugging. We could probably reuse the logic for the tapd daemon runtime ID.

Describe alternatives you've considered

Counting log lines manually.

Additional context

jharveyb avatar Nov 15 '23 18:11 jharveyb