3 ms·
This is addressed in the article. > As the call to LogAttrs shows, you can pass a context.Context to some log functions so a handler can extract context inform
by thiht 3y ago
This is addressed in the article.
> As the call to LogAttrs shows, you can pass a context.Context to some log functions so a handler can extract context information like trace IDs.
I’m not a fan of slog’s syntax, but the convenience of having it in the stdlib trumps that, for me.