metric for offer

This commit is contained in:
Anton Evangelatov 2020-06-26 18:19:40 +02:00
parent 5fa2c1c410
commit e388d96073

View File

@ -176,6 +176,7 @@ func retrieveData(t *TestEnvironment, ctx context.Context, err error, client api
} }
for _, o := range offers { for _, o := range offers {
t.D().Counter(fmt.Sprintf("find-data.offer.%s", o.Miner)).Inc(1) t.D().Counter(fmt.Sprintf("find-data.offer.%s", o.Miner)).Inc(1)
t.D().Counter("find-data.offer").Inc(1)
} }
t.D().ResettingHistogram("find-data").Update(int64(time.Since(t1))) t.D().ResettingHistogram("find-data").Update(int64(time.Since(t1)))