Commit 87b554d0 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #9497 from sun-jian:bugfix/dropwizard

* pr/9497:
  Fix metric check in case of duplicate metric
parents 144d987c 1745a5ee
......@@ -148,7 +148,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService {
}
catch (IllegalArgumentException ex) {
Metric added = this.registry.getMetrics().get(name);
registrar.checkExisting(metric);
registrar.checkExisting(added);
return (T) added;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment