merlimat commented on a change in pull request #507: Add zk-stats
instrumentation to get zk-client stats
URL: https://github.com/apache/incubator-pulsar/pull/507#discussion_r126568514
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -189,6 +190,10 @@ public BrokerService(PulsarService pulsar) throws
Exception {
this.multiLayerTopicsMap = new ConcurrentOpenHashMap<>();
this.pulsarStats = new PulsarStats(pulsar);
+ // register listener to capture zk-latency
+ ClientCnxnAspect.addListner((eventType, latencyMs) -> {
+ this.pulsarStats.recordZkLatencyTimeValue(eventType, latencyMs);
Review comment:
What about importing the `BookkeeperClient.java` source file from bk master?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services