szetszwo commented on code in PR #742:
URL: https://github.com/apache/ratis/pull/742#discussion_r972084722
##########
ratis-server/src/main/java/org/apache/ratis/server/metrics/RaftLogMetricsBase.java:
##########
@@ -33,8 +34,12 @@ public class RaftLogMetricsBase extends RatisMetrics
implements RaftLogMetrics {
public static final String CONFIG_LOG_ENTRY_COUNT = "configLogEntryCount";
public static final String STATE_MACHINE_LOG_ENTRY_COUNT =
"stateMachineLogEntryCount";
+ private final LongCounter configLogEntryCount =
getRegistry().counter(CONFIG_LOG_ENTRY_COUNT);
+ private final LongCounter metadataLogEntryCount =
getRegistry().counter(METADATA_LOG_ENTRY_COUNT);
+ private final LongCounter stateMachineLogEntryCount =
getRegistry().counter(STATE_MACHINE_LOG_ENTRY_COUNT);
+
public RaftLogMetricsBase(RaftGroupMemberId serverId) {
- this.registry = getLogWorkerMetricRegistry(serverId);
+ super(getLogWorkerMetricRegistry(serverId));
Review Comment:
Done.
--
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]