This release dramatically improves interoperability with Go's log/slog package. In particular, logr.NewContext and logr.NewContextWithSlogLogger use the same context key, which allows logr.FromContext and logr.FromContextAsSlogLogger to return logr.Logger or *slog.Logger respectively, including transparently converting each to the other as needed.
Functions logr/slogr.NewLogr and logr/slogr.ToSlogHandler have been superceded by logr.FromSlogHandler and logr.ToSlogHandler respectively, and type logr/slogr.SlogSink has been superceded by logr.SlogSink. All of the old names in logr/slogr remain, for compatibility.
Package logr/funcr now supports logr.SlogSink, meaning that it's output passes all but one of the Slog conformance tests (that exception being that funcr handles the timestamp itself).
Users who have a logr.Logger and need a *slog.Logger can call slog.New(logr.ToSlogHandler(...)) and all output will go through the same stack.
Users who have a *slog.Logger or slog.Handler can call logr.FromSlogHandler(...) and all output will go through the same stack.
This release adds support for slog in a new, self-contained logr/slogr package. Implementers of a logr.LogSink are encouraged, but not required, to extend their implementation to improve the quality of log output coming from a slog API call.
Breaking change: the call depth for LogSink.Enabled when called via Logger.Enabledwas fixed to be the same as for other call paths. Implementers of a LogSink who have worked around this bug will need to remove their workarounds.
Security best practices were improved. Only Go versions >= 1.18 are supported by this release.
The module prometheus/common v0.48.0 introduced an incompatibility when used together with client_golang (See prometheus/client_golang#1448 for more details). If your project uses client_golang and you want to use prometheus/common v0.48.0 or higher, please update client_golang to v1.19.0.
[CHANGE] Minimum required go version is now 1.20 (we also test client_golang against new 1.22 version). #1445#1449
[FEATURE] collectors: Add version collector. #1422#1427
The module prometheus/common v0.48.0 introduced an incompatibility when used together with client_golang (See prometheus/client_golang#1448 for more details). If your project uses client_golang and you want to use prometheus/common v0.48.0 or higher, please update client_golang to v1.19.0.
[CHANGE] Minimum required go version is now 1.20 (we also test client_golang against new 1.22 version). #1445#1449
[FEATURE] collectors: Add version collector. #1422#1427
1.18.0 / 2023-12-22
[FEATURE] promlint: Allow creation of custom metric validations. #1311
[FEATURE] Go programs using client_golang can be built in wasip1 OS. #1350
[BUGFIX] histograms: Add timer to reset ASAP after bucket limiting has happened. #1367
[BUGFIX] testutil: Fix comparison of metrics with empty Help strings. #1378
[ENHANCEMENT] Improved performance of MetricVec.WithLabelValues(...). #1360
1.17.0 / 2023-09-27
[CHANGE] Minimum required go version is now 1.19 (we also test client_golang against new 1.21 version). #1325
[FEATURE] Add support for Created Timestamps in Counters, Summaries and Historams. #1313
[ENHANCEMENT] Enable detection of a native histogram without observations. #1314
Support usage as plugin for tools like kubectl by @nirs in spf13/cobra#2018 - this means that programs that utilize a "plugin-like" structure have much better support and usage (like for completions, command paths, etc.)
Add 'one required flag' group by @marevers in spf13/cobra#1952 - this includes a new MarkFlagsOneRequired API for flags which can be used to mark a flag group as required and cause command failure if at least one is not used when invoked.
Customizable error message prefix by @5ouma in spf13/cobra#2023 - This adds the SetErrPrefix and ErrPrefix APIs on the Command struct to allow for setting a custom prefix for errors
I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
- **[OWNERS](https://github.com/kubernetes/ingress-gce/blob/master/OWNERS)**
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
Bumps the gomod-dependencies group with 8 updates in the / directory:
1.2.4
1.4.1
1.5.3
1.5.4
1.16.0
1.19.1
1.7.0
1.8.0
1.8.2
1.9.0
0.151.0
0.181.0
0.26.1
0.30.1
0.28.2
0.30.1
Updates
github.com/go-logr/logr
from 1.2.4 to 1.4.1Release notes
Sourced from github.com/go-logr/logr's releases.
... (truncated)
Commits
dcdc3f2
slogr: fix unintended API break in v0.8.0 (#253)5d88f52
funcr: Add LogInfoLevel Option to skip logging level in the info log (#240)177005d
build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0e7f489a
build(deps): bump github/codeql-action from 2.22.9 to 3.22.11cf56c3b
build(deps): bump actions/setup-go from 4 to 52ad296e
build(deps): bump github/codeql-action from 2.22.8 to 2.22.9d55b4e2
Merge pull request #241 from thockin/master98ee9d9
Clean up slog testing and restore coverageb228ba8
Break examples to new file6432877
Add benchmarks for slogSinkUpdates
github.com/golang/protobuf
from 1.5.3 to 1.5.4Release notes
Sourced from github.com/golang/protobuf's releases.
Commits
75de7c0
Merge pull request #1597 from golang/updatedescb7697bb
all: update descriptor.proto to latest versionUpdates
github.com/prometheus/client_golang
from 1.16.0 to 1.19.1Release notes
Sourced from github.com/prometheus/client_golang's releases.
... (truncated)
Changelog
Sourced from github.com/prometheus/client_golang's changelog.
Commits
6e3f4b1
Cut 1.19.1 (#1494)cad1bfa
Merge pull request #1454 from prometheus/small-nits0aa8c9f
Rephrase incompatibility with common v0.48.077d4003
Add 1.19.0 changelog (#1451)14259fa
Merge pull request #1448 from ywwg/owilliams/content-negotiation6d03920
deps: bump prometheus/common version353395b
Remove support for go 1.19 (#1449)9dd5d2a
Merge pull request #1445 from kavu/add_go122_metrics_testc906a5e
Add support for Go 1.227ac9036
Merge pull request #1440 from prometheus/dependabot/github_actions/github-act...Updates
github.com/prometheus/client_model
from 0.4.0 to 0.5.0Release notes
Sourced from github.com/prometheus/client_model's releases.
Commits
1c92cad
Merge pull request #72 from prometheus/repo_sync58db340
Update common Prometheus filescbe84de
Merge pull request #71 from prometheus/superq/update_build568c466
Update Gobaaa038
Merge pull request #70 from prometheus/repo_sync185bafb
Update common Prometheus files7b38251
Merge pull request #69 from prometheus/repo_sync4dbcf4e
Update common Prometheus filescfbcccb
Merge pull request #67 from prometheus/beorn7/histogram2a367b9
histogram: Add a doc comment about when to add a no-op spanUpdates
github.com/spf13/cobra
from 1.7.0 to 1.8.0Release notes
Sourced from github.com/spf13/cobra's releases.
Commits
a0a6ae0
Improve API to get flag completion function (#2063)890302a
Support usage as plugin for tools like kubectl (#2018)48cea5c
build(deps): bump actions/checkout from 3 to 4 (#2028)22953d8
Replace all non-alphanumerics in active help env var program prefix (#1940)00b68a1
Add tests for flag completion registration (#2053)b711e87
Don't complete --help flag when flag parsing disabled (#2061)8b1eba4
Fix linter errors (#2052)4cafa37
Allow running persistent run hooks of all parents (#2044)5c962a2
build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.2 to 2.0.3 (#2047)efe8fa3
build(deps): bump actions/setup-go from 3 to 4 (#1934)Updates
github.com/stretchr/testify
from 1.8.2 to 1.9.0Release notes
Sourced from github.com/stretchr/testify's releases.
... (truncated)
Commits
bb548d0
Merge pull request #1552 from stretchr/dependabot/go_modules/github.com/stret...814075f
build(deps): bump github.com/stretchr/objx from 0.5.1 to 0.5.2e045612
Merge pull request #1339 from bogdandrutu/uintptr5b6926d
Merge pull request #1385 from hslatman/not-implements9f97d67
Merge pull request #1550 from stretchr/release-notesbcb0d3f
Include the auto-release notes in releasesfb770f8
Merge pull request #1247 from ccoVeille/typos85d8bb6
fix typos in comments, tests and github templatese2741fa
Merge pull request #1548 from arjunmahishi/msgAndArgs6e59f20
http_assertions: assert that the msgAndArgs actually works in testsUpdates
golang.org/x/oauth2
from 0.13.0 to 0.16.0Commits
39adbb7
go.mod: update golang.org/x dependencies4ce7bbb
google: add Credentials.GetUniverseDomain with GCE MDS support1e6999b
google: add UniverseDomain to CredentialsParams6e9ec93
go.mod: update golang.org/x dependenciese067960
go.mod: update golang.org/x dependencies4c91c17
google: adds header to security considerations sectionUpdates
google.golang.org/api
from 0.151.0 to 0.181.0Release notes
Sourced from google.golang.org/api's releases.
... (truncated)
Changelog
Sourced from google.golang.org/api's changelog.
... (truncated)
Commits
4b79cc4
chore(main): release 0.181.0 (#2582)c3f4828
feat(all): auto-regenerate discovery clients (#2589)7d13175
chore: update min version to 1.20 (#2588)86c9521
feat(all): auto-regenerate discovery clients (#2587)afc4685
feat(all): auto-regenerate discovery clients (#2586)4177d21
chore(all): update all (#2584)e35f76f
feat(all): auto-regenerate discovery clients (#2585)Hi @dependabot[bot]. Thanks for your PR.
I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with
/ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.Once the patch is verified, the new status will be reflected by the
ok-to-test
label.I understand the commands that are listed here.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: dependabot[bot] Once this PR has been reviewed and has the lgtm label, please assign thockin for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
@dependabot[bot]: The following tests failed, say
/retest
to rerun all failed tests or/retest-required
to rerun all mandatory failed tests:/test pull-ingress-gce-test
/test pull-ingress-gce-verify
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
Looks like these dependencies are updatable in another way, so this is no longer needed.