Skip to content

feat: new promslog and promslog/flag packages to wrap log/slog #1140

feat: new promslog and promslog/flag packages to wrap log/slog

feat: new promslog and promslog/flag packages to wrap log/slog #1140

Triggered via pull request August 16, 2024 20:58
Status Failure
Total duration 19s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: promslog/slog.go#L149
Error return value of `config.Level.Set` is not checked (errcheck)
lint: promslog/slog_test.go#L136
Error return value of `config.Level.Set` is not checked (errcheck)
lint: promslog/slog_test.go#L150
Error return value of `config.Level.Set` is not checked (errcheck)
lint: promslog/slog.go#L140
field `logHandlerOpts` is unused (unused)
lint: promslog/slog_test.go#L83
type `handler` is unused (unused)
lint: promslog/slog_test.go#L89
func `(*handler).Enabled` is unused (unused)
lint: promslog/slog_test.go#L93
func `(*handler).WithAttrs` is unused (unused)
lint: promslog/slog_test.go#L97
func `(*handler).WithGroup` is unused (unused)
lint: promslog/slog_test.go#L101
func `(*handler).Handle` is unused (unused)
lint: promlog/flag/flag.go#L21
SA1019: "github.com/prometheus/common/promlog" is deprecated: This package has been replaced with github.com/prometheus/common/promslog. (staticcheck)