Skip to content

Conversation

@tjhop
Copy link
Contributor

@tjhop tjhop commented Sep 29, 2024

Requires: prometheus/common#697

This PR includes:

  • linter updates to enable sloglint linter
  • Go dep updates for prometheus/{client_golang,common,exporter-toolkit}
    libs
  • refactorings to adopt log/slog in favor of go-kit/log

The bulk of this PR was automated by the following script which is being
used to aid in converting the various exporters/projects to use slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

Builds and passes tests locally with go workspaces and up-to-date main
branch of prometheus/common.

Signed-off-by: TJ Hoplock [email protected]

Signed-off-by: TJ Hoplock <[email protected]>
Requires: prometheus/common#697

This PR includes:

- linter updates to enable sloglint linter
- Go dep updates for prometheus/{client_golang,common,exporter-toolkit}
  libs
- refactorings to adopt log/slog in favor of go-kit/log

The bulk of this PR was automated by the following script which is being
used to aid in converting the various exporters/projects to use slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

Builds and passes tests locally with go workspaces and up-to-date main
branch of prometheus/common.

Signed-off-by: TJ Hoplock <[email protected]>
@tjhop
Copy link
Contributor Author

tjhop commented Sep 29, 2024

cc: @SuperQ

@SuperQ SuperQ merged commit 661179e into prometheus:master Oct 10, 2024
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.

2 participants