rishabhdaim commented on code in PR #2216:
URL: https://github.com/apache/jackrabbit-oak/pull/2216#discussion_r2058051719


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/FullGCStatsCollectorImpl.java:
##########
@@ -37,6 +37,7 @@
  */
 class FullGCStatsCollectorImpl implements FullGCStatsCollector {
 
+    static final String FULL_GC_PUSH_METRICS_PREFIX = "oak_FullGC";

Review Comment:
   It should also use a better name.



##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/FullGCStatsCollectorImpl.java:
##########
@@ -83,9 +84,15 @@ class FullGCStatsCollectorImpl implements 
FullGCStatsCollector {
 
     private final CounterStats counter;
     private final CounterStats failureCounter;
+    private static String METRICS_QUALIFIED_NAME_PREFIX;
 
     FullGCStatsCollectorImpl(StatisticsProvider provider) {
+        this(provider, false);
+    }
+
+    FullGCStatsCollectorImpl(StatisticsProvider provider, boolean pushMetrics) 
{
         this.provider = provider;
+        this.METRICS_QUALIFIED_NAME_PREFIX = pushMetrics ? 
FULL_GC_PUSH_METRICS_PREFIX : FULL_GC;

Review Comment:
   I would change the variable name to indicate that they are from OAK-RUN.
   
   `PushMetrics` doesn't sound very intuitive to me.



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