alertmanager/cluster
TJ Hoplock f6b942cf9b
chore!: adopt log/slog, drop go-kit/log (#4089)
* 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

This commit includes several changes:
- bump exporter-tookit to v0.13.1 for log/slog support
- updates golangci-lint deprecated configs
- enables sloglint linter
- removes old go-kit/log linter configs
- introduce some `if logger == nil { $newLogger }` additions to prevent
  nil references
- converts cluster membership config to use a stdlib compatible slog
  adapter, rather than creating a custom io.Writer for use as the
membership `logOutput` config

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

* chore: address PR feedback

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

---------

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-11-06 09:09:57 +00:00
..
clusterpb
testdata cluster: fix panic when `tls_client_config` is empty 2023-08-04 14:29:06 +02:00
advertise.go use Go standard errors 2023-12-08 16:44:13 +01:00
advertise_test.go
channel.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
channel_test.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
cluster.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
cluster_test.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
connection_pool.go use Go standard errors 2023-12-08 16:44:13 +01:00
delegate.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
tls_config.go cluster: fix panic when `tls_client_config` is empty 2023-08-04 14:29:06 +02:00
tls_connection.go use Go standard errors 2023-12-08 16:44:13 +01:00
tls_connection_test.go golangci-lint: enable testifylint linter 2023-12-10 08:50:03 +00:00
tls_transport.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
tls_transport_test.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00