Skip to content

Commit

Permalink
sinkv2(ticdc): observe row size in MQ sink (#8287) (#8290)
Browse files Browse the repository at this point in the history
close #8286
  • Loading branch information
ti-chi-bot authored Feb 17, 2023
1 parent 86004ca commit 57ebd32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdc/sinkv2/eventsink/mq/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func (w *worker) batch(
return index, nil
}
if msg.rowEvent != nil {
w.statistics.ObserveRows(msg.rowEvent.Event)
events[index] = msg
index++
}
Expand All @@ -228,6 +229,7 @@ func (w *worker) batch(
}

if msg.rowEvent != nil {
w.statistics.ObserveRows(msg.rowEvent.Event)
events[index] = msg
index++
}
Expand Down

0 comments on commit 57ebd32

Please sign in to comment.