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 slog, drop go-kit/log #210

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

tjhop
Copy link
Contributor

@tjhop tjhop commented Oct 18, 2024

This PR:

  • bumps CI to go1.23
  • bumps minimum go version in go.mod to 1.22
  • bump prometheus/{client_golang,common,exporter-toolkit} libraries to latest
  • converts the exporter to use log/slog, drops go-kit/log from deps

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

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
@tjhop tjhop changed the title Chore/adopt slog chore!: adopt slog, drop go-kit/log Oct 18, 2024
@tjhop
Copy link
Contributor Author

tjhop commented Oct 18, 2024

cc: @SuperQ

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
Comment on lines 12 to +14
linters-settings:
errcheck:
exclude-functions:
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
exclude-functions: []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the whole section now.

@SuperQ SuperQ requested a review from bitfehler October 18, 2024 06:12
Copy link
Contributor

@bitfehler bitfehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please note that due to the release yesterday, this will take a moment to show up in the next release.

@bitfehler bitfehler merged commit b08f887 into prometheus-community:master Oct 18, 2024
2 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.

3 participants