Github user eolivelli commented on the issue: https://github.com/apache/zookeeper/pull/582 @anmolnar you are right. MetricsContext will be like a namespace, I expect that each component/submodule will have its own MetricsContext. This is useful for two reasons/usecases. 1) each component will work having its own MetricsContext, which is like a local namespace for metrics 2) there are cases in which you have multiple instances of each component, for instance in a zk server maybe you will have the same metrics for every other peer Maybe it is worth to add some more doc, but when we will have attached the interface to real code it will be very straightforward.
---