Skip to content

Commit 6040da3

Browse files
committed
fix(heimdall): span rotation edge case
1 parent 2a7b565 commit 6040da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

observer/heimdall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func (o *HeimdallSpanObserver) Notify(ctx context.Context, m Message) {
469469
return
470470
}
471471

472-
if curr.StartBlock <= prev.EndBlock {
472+
if curr.StartBlock <= prev.EndBlock || curr.StartBlock == prev.StartBlock {
473473
o.overlaps.WithLabelValues(network, provider).Add(1)
474474
blocks := prev.EndBlock - curr.StartBlock + 1
475475
o.overlapped.WithLabelValues(network, provider).Add(float64(blocks))

0 commit comments

Comments
 (0)