News for hackers. Stuff that matters.
Re:Error handling with errgroups by conradludgate on Friday October 29, 2021 @04:46PM (#29043328)
The other replies are correct, but the data they've contain is also useful.

In our work, we make use of contexts for logging and tracing. When a request comes in, we updated the context to contain a request ID, any logs we perform in our functions make use of this context to extract that information in order to connect related logs.

Tracing also makes use of these contexts. When you create a new trace, you wrap a context. That context contains the trace parent. That way, any new traces made using that context, will be linked to the parent

But that's the limit. It's just a processing context, not processing data

There are no comments on this comment yet.