prometheus
prometheus copied to clipboard
Replace go-kit/log with log/slog
Proposal
As @SuperQ proposed on Slack, the 3.0 release would be a good opportunity to replace go-kit/log with log/slog.
Afaiu the goal is to keep the log output format close to what is logged today with changes where needed. Some cli flag behavior will probably have to change.
This is a good idea.
@jan--f Hi, is it possible for me pick this one up?
@jan--f Hi, is it possible for me pick this one up?
@roidelapluie @jan--f ??
@ansh-devs yeah I think you can contribute to this. Please reach out to @SuperQ, he might be working on this already. Join us on slack for a quicker discussion.
Hey all, prometheus/common#677 is ready for review. Once that's done with review and merged, I'll get started converting prometheus to use slog :+1:
While transition to slog, I can recommend the https://github.com/go-simpler/sloglint which is available via golangci-lint.
I'm nearly finished converting prometheus to use slog via the new promslog package in prometheus/common. I'll open it as a draft PR when ready so we can tear it apart 👍
#14906 has been merged!