yihua commented on code in PR #11035:
URL: https://github.com/apache/hudi/pull/11035#discussion_r1598982601


##########
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:
   @danny0405 this metric also contains the latency of reading the data from 
source. So should we rename it to `reading_source_and_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]

Reply via email to