[WIP] Implement atomic operations for various metrics using Prometheus as the backend storage #1489
Annotations
4 errors
pkg/metrics/manager/manager.go#L122
[staticcheck] reported by reviewdog 🐶
should use make(chan bool) instead
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should use make(chan bool) instead","code":{"value":"S1019","url":"https://staticcheck.io/docs/checks#S1019"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/manager/manager.go","range":{"start":{"line":122,"column":32}}},"severity":"ERROR"}
|
pkg/metrics/manager/manager.go#L376
[staticcheck] reported by reviewdog 🐶
unnecessary assignment to the blank identifier
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"unnecessary assignment to the blank identifier","code":{"value":"S1005","url":"https://staticcheck.io/docs/checks#S1005"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/manager/manager.go","range":{"start":{"line":376,"column":11}}},"severity":"ERROR"}
|
pkg/metrics/stats/snake_case_converter.go#L59
[staticcheck] reported by reviewdog 🐶
should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice","code":{"value":"S1007","url":"https://staticcheck.io/docs/checks#S1007"},"location":{"path":"/home/runner/work/arana/arana/pkg/metrics/stats/snake_case_converter.go","range":{"start":{"line":59,"column":3}}},"severity":"ERROR"}
|
|
The logs for this run have expired and are no longer available.
Loading