[#764] metrics: Fix epoch metric
All checks were successful
DCO action / DCO (pull_request) Successful in 4m53s
Vulncheck / Vulncheck (pull_request) Successful in 4m51s
Build / Build Components (1.21) (pull_request) Successful in 6m39s
Build / Build Components (1.20) (pull_request) Successful in 7m18s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m27s
Tests and linters / Tests with -race (pull_request) Successful in 8m24s
Tests and linters / Tests (1.21) (pull_request) Successful in 8m48s
Tests and linters / Staticcheck (pull_request) Successful in 8m44s
Tests and linters / Lint (pull_request) Successful in 9m58s
All checks were successful
DCO action / DCO (pull_request) Successful in 4m53s
Vulncheck / Vulncheck (pull_request) Successful in 4m51s
Build / Build Components (1.21) (pull_request) Successful in 6m39s
Build / Build Components (1.20) (pull_request) Successful in 7m18s
Tests and linters / Tests (1.20) (pull_request) Successful in 8m27s
Tests and linters / Tests with -race (pull_request) Successful in 8m24s
Tests and linters / Tests (1.21) (pull_request) Successful in 8m48s
Tests and linters / Staticcheck (pull_request) Successful in 8m44s
Tests and linters / Lint (pull_request) Successful in 9m58s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
c80b46fad3
commit
616aafc494
1 changed files with 2 additions and 1 deletions
|
@ -562,10 +562,11 @@ func initCfg(appCfg *config.Config) *cfg {
|
|||
relayOnly := nodeconfig.Relay(appCfg)
|
||||
|
||||
netState := newNetworkState()
|
||||
netState.metrics = c.metricsCollector
|
||||
|
||||
c.shared = initShared(appCfg, key, netState, relayOnly)
|
||||
|
||||
netState.metrics = c.metricsCollector
|
||||
|
||||
logPrm, err := c.loggerPrm()
|
||||
fatalOnErr(err)
|
||||
logPrm.SamplingHook = c.metricsCollector.LogMetrics().GetSamplingHook()
|
||||
|
|
Loading…
Reference in a new issue