Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We've been storing values on errors using https://github.com/levenlabs/errctx for close to a decade now. We have a separate logging library that stores a KV map but technically you can store anything on errors. I recently just made it unwrap errors to find deeply stored keys.


Hopefully with some kind of synchronization, since errctx is pretty clearly not safe for concurrent use by multiple goroutines.. !




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: