Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: adopt log/slog, drop go-kit/log #149

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

tjhop
Copy link
Contributor

@tjhop tjhop commented Nov 8, 2024

chore!: adopt log/slog, drop go-kit/log

The bulk of this change set 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

Other changes include:

  • bumps prometheus/{common,exporter-toolkit,client_golang}
  • removes linter configs for go-kit/log
  • enables sloglint
  • switches kingpin to use github import to avoid gopkg.in vs github.com
    import conflicts with promethues/common/promslog/flag pkg
  • updates version collector to use the new pkg from client_golang and
    get off old pkg from common

@tjhop
Copy link
Contributor Author

tjhop commented Nov 8, 2024

cc: @SuperQ @juliusv

@SuperQ SuperQ self-requested a review November 8, 2024 07:27
@tjhop
Copy link
Contributor Author

tjhop commented Nov 8, 2024

Looks like golangci-lint needs to be updated in CI -- the version used is too old to support the sloglint linter

The bulk of this change set 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

Other changes include:

- bumps prometheus/{common,exporter-toolkit,client_golang}
- removes linter configs for go-kit/log
- enables sloglint
- switches kingpin to use github import to avoid gopkg.in vs github.com
  import conflicts with promethues/common/promslog/flag pkg
- updates version collector to use the new pkg from client_golang and
  get off old pkg from common

Signed-off-by: TJ Hoplock <[email protected]>
pkg/web/web.go Outdated Show resolved Hide resolved
@SuperQ SuperQ merged commit c905ae0 into prometheus:main Nov 10, 2024
9 checks passed
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