Vulncheck / Vulncheck (pull_request) Successful in 1m20sDetails
DCO action / DCO (pull_request) Successful in 1m59sDetails
Build / Build Components (1.21) (pull_request) Successful in 3m25sDetails
Build / Build Components (1.20) (pull_request) Successful in 4m46sDetails
Tests and linters / Staticcheck (pull_request) Successful in 6m5sDetails
Tests and linters / gopls check (pull_request) Successful in 6m17sDetails
Tests and linters / Lint (pull_request) Successful in 7m7sDetails
Tests and linters / Tests (1.20) (pull_request) Successful in 8m38sDetails
Tests and linters / Tests with -race (pull_request) Successful in 8m51sDetails
Tests and linters / Tests (1.21) (pull_request) Successful in 8m56sDetails
metabase.Open() now reports metabase mode metric. shard.UpdateID()
needs to read shard ID from metabase => needs to open metabase.
It caused reporting 'shard undefined' metrics. To avoid reporting
wrong metrics metabase.GetShardID() was added which also opens
metabase and does not report metrics.
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
Semantic patch:
```
@@
var f expression
var t expression
var a expression
@@
f(
...,
- zap.String(t, a.String()),
+ zap.Stringer(t, a),
...,
)
```
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
If shard ID is stored in metabase (it is not the first time boot), read it,
set it, use it (not a generated one) in the metrics writer.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Make it store its internal `zap.Logger`'s level. Also, make all the
components to accept internal `logger.Logger` instead of `zap.Logger`; it
will simplify future refactor.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>