Skip to content

Migrate from promlog/go-kit log to promslog/slog; bump prometheus deps - #295

Merged
cpanato merged 1 commit into
mainfrom
chore/migrate-promlog-to-promslog
Oct 9, 2026
Merged

cpanato merged 1 commit into
mainfrom
chore/migrate-promlog-to-promslog

Conversation

@cpanato

@cpanato cpanato commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Changes

  • Replace go-kit/log and prometheus/common/promlog with log/slog and promslog (main, server, billing and workflow exporters, tests). --log.level and --log.format flags are unchanged.
  • Upgrade prometheus/common v0.60.1 → v0.72.0 and client_golang v1.20.5 → v1.25.0 (procfs → v0.22.0); go-kit/log and logfmt dropped from go.mod.
  • Log messages are now structured attributes instead of preformatted strings, e.g. not exporting org billing with reason=..., Listening with address=.... Fixed one call that logged error reading body: %v without formatting.

Notes

  • Log output format changes slightly (slog-based promslog handler: time/level/source/msg keys), so log parsers may need an update.
  • Remaining follow-up: go-github v66 → v92 needs the billing metrics moved to the usage report API.

Validation

go build, go test -race, golangci-lint (0 issues), and a smoke run with --log.format=json (metrics 200, bad webhook 403, clean shutdown).

Replace go-kit/log and prometheus/common/promlog with log/slog and
promslog. The --log.level and --log.format flags are unchanged. This
unblocks upgrading prometheus/common to v0.72.0 and client_golang to
v1.25.0.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Carlos Panato <[email protected]>
@cpanato
cpanato force-pushed the chore/migrate-promlog-to-promslog branch from d194671 to a63e686 Compare October 9, 2026 15:35
@cpanato
cpanato merged commit 0f43dd7 into main Oct 9, 2026
3 checks passed
@cpanato
cpanato deleted the chore/migrate-promlog-to-promslog branch October 9, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant