Tartarus0zm commented on code in PR #25832:
URL: https://github.com/apache/flink/pull/25832#discussion_r1904853898


##########
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/util/MetricUtils.java:
##########
@@ -366,6 +369,17 @@ private static void instantiateCPUMetrics(MetricGroup 
metrics) {
         }
     }
 
+    public static String truncateOperatorName(String operatorName, int 
maxLength) {

Review Comment:
   @1996fanrui  yes, I updated this PR two weeks ago.
   <img width="843" alt="image" 
src="https://github.com/user-attachments/assets/20a7a13a-2581-41c3-b674-24f60db98860";
 />
   a.  optimized MetricUtils#truncateOperatorName, internal judgement of how 
OperatorName should be truncated.
   b. add Test 
[MetricUtilsTest.java](https://github.com/apache/flink/pull/25832/files#diff-3a4d0047f0aea26a1d175856b9242df15dcf524a01d6076955d5a5608245a8e1)
 for MetricUtils#truncateOperatorName.



-- 
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