danny0405 commented on code in PR #11035:
URL: https://github.com/apache/hudi/pull/11035#discussion_r1590626909
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metrics/HoodieMetrics.java:
##########
@@ -207,6 +210,13 @@ public Timer.Context getIndexCtx() {
return indexTimer == null ? null : indexTimer.time();
}
+ public Timer.Context getPreWriteTimerCtx() {
+ if (config.isMetricsOn() && preWriteTimer == null) {
+ preWriteTimer = createTimer(preWriteTimerName);
+ }
Review Comment:
Looks like a indexing time for the records, how about name it as just
"indexing".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]