add trace wdpost

This commit is contained in:
zgfzgf 2020-09-25 20:31:07 +08:00
parent e5873d5dea
commit 13b38815c2

View File

@ -125,10 +125,13 @@ func (s *WindowPoStScheduler) Run(ctx context.Context) {
continue
}
ctx, span := trace.StartSpan(ctx, "WindowPoStScheduler.headChange")
if err := s.update(ctx, chg.Val); err != nil {
log.Errorf("%+v", err)
}
span.End()
gotCur = true
continue
}