cmd/swarm: add emitMetrics on each sliding window successful run in addition to the shutdown report

This commit is contained in:
Elad Nachmias 2019-02-25 16:19:47 +07:00
parent 01c073579e
commit 997d763437

View file

@ -118,6 +118,9 @@ outer:
networkDepth = i networkDepth = i
metrics.GetOrRegisterGauge("sliding-window.network-depth", nil).Update(int64(networkDepth)) metrics.GetOrRegisterGauge("sliding-window.network-depth", nil).Update(int64(networkDepth))
log.Info("sliding window test successfully fetched file", "currentDepth", networkDepth) log.Info("sliding window test successfully fetched file", "currentDepth", networkDepth)
// this test might take a long time to finish - but we'd like to see metrics while they accumulate and not just when
// the test finishes. therefore emit the metrics on each iteration
emitMetrics(ctx)
} }
} }