4 ms·
I have tried to figure out some kind of unification between "collecting error state in a function", "logging error state", and "return error state to a parent".
by dwattttt 5mo ago
I have tried to figure out some kind of unification between "collecting error state in a function", "logging error state", and "return error state to a parent".
I haven't found any satisfying solution to it all; collecting information for logging vs information that a caller would want... I've been meaning to investigate tracing_error to see if it brings it all together.
- awesome_dude 5mo agoRegardless of language - if you find a good, clear answer - blog the hang out of it - I for one have been searching for the right way to manage this, and it's not (yet) clearer - other than what I've said so far
- iknowstuff 5mo agotracing_error is a nice option if you already have the tracing context. snafu makes it easy to attach structured context to an error