From 997d763437693edfa5d5bb6bd64d77ef25a26a32 Mon Sep 17 00:00:00 2001 From: Elad Nachmias Date: Mon, 25 Feb 2019 16:19:47 +0700 Subject: [PATCH] cmd/swarm: add emitMetrics on each sliding window successful run in addition to the shutdown report --- cmd/swarm/swarm-smoke/sliding_window.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/swarm/swarm-smoke/sliding_window.go b/cmd/swarm/swarm-smoke/sliding_window.go index 6197bebb2c..e5aff1d072 100644 --- a/cmd/swarm/swarm-smoke/sliding_window.go +++ b/cmd/swarm/swarm-smoke/sliding_window.go @@ -118,6 +118,9 @@ outer: networkDepth = i metrics.GetOrRegisterGauge("sliding-window.network-depth", nil).Update(int64(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) } }