AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Using a Logger in a Distributed System?
Go's context is very useful for like user ID maybe and you know, the host name. And that gets passed into the the logger when you write call a log line, the first arguments of context. I wish go went one step farther here. It would be nice if functions that you called so like, you know, with timeout or with whatever could take a string that would just print in whatever error block ultimately catches that context being canceled.