Skip to content

Commit

Permalink
sinkv2(ticdc): observe row size in MQ sink (#8287)
Browse files Browse the repository at this point in the history
close #8286
  • Loading branch information
Rustin170506 authored Feb 17, 2023
1 parent 7e6800f commit 03416c5
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 @@ -215,6 +215,7 @@ func (w *worker) batch(
return index, nil
}
if msg.rowEvent != nil {
w.statistics.ObserveRows(msg.rowEvent.Event)
events[index] = msg
index++
}
Expand All @@ -233,6 +234,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 03416c5

Please sign in to comment.