LabKit slog is slower and allocates more than vanilla stdlib slog
The following discussion from !249 should be addressed: - [ ] @ash2k started a [discussion](https://gitlab.com/gitlab-org/labkit/-/merge_requests/249#note_3057673493): (+1 comment) > `Handle()` is called for each emitted log line and it adds the same attrs to the log record each time. This is not great for performance. stdlib [pre-formats](https://github.com/golang/go/blob/go1.25.6/src/log/slog/handler.go#L237) the attributes added to the logger ONE time and then just uses the resulting bytes instead of doing it each time. > > We do not need to invent a bicycle here - it's done and is available for use in the standard library. Let's just attach attributes to the logger (and not the context) like everyone does, like it is intended.
issue