add trace wdpost
This commit is contained in:
parent
e5873d5dea
commit
13b38815c2
@ -125,10 +125,13 @@ func (s *WindowPoStScheduler) Run(ctx context.Context) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx, span := trace.StartSpan(ctx, "WindowPoStScheduler.headChange")
|
||||||
|
|
||||||
if err := s.update(ctx, chg.Val); err != nil {
|
if err := s.update(ctx, chg.Val); err != nil {
|
||||||
log.Errorf("%+v", err)
|
log.Errorf("%+v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.End()
|
||||||
gotCur = true
|
gotCur = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user