prashantwason commented on code in PR #17466:
URL: https://github.com/apache/hudi/pull/17466#discussion_r2770720307
##########
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:
Done. Made HOODIE_DEFAULT_VERSION public and used it here.
--
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]