nsivabalan commented on code in PR #17466:
URL: https://github.com/apache/hudi/pull/17466#discussion_r2733933841
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metrics/HoodieMetrics.java:
##########
@@ -552,6 +553,14 @@ public void emitIndexTypeMetrics(int indexTypeOrdinal) {
}
}
+ public void emitVersionMetrics() {
+ if (config.isMetricsOn()) {
+ final String version = HoodieVersion.get();
+ metrics.registerGauge(getMetricsName("userName",
System.getProperty("user.name")), 1);
+ metrics.registerGauge(getMetricsName("version",
StringUtils.isNullOrEmpty(version) ? "0.14.x" : version), 1);
Review Comment:
lets use HoodieVersion.HOODIE_DEFAULT_VERSION for default values.
--
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]