@Override public void notifyOfRemovedMetric(Metric metric, String metricName, MetricGroup group) { final String name = group.getMetricIdentifier(metricName, this); super.notifyOfRemovedMetric(metric, metricName, group); synchronized (this) { ps.printf("%s: %s%n", name, Metrics.toString(metric)); } }