Browse Source

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

* pr/9497:
  Fix metric check in case of duplicate metric
pull/9677/merge
Stephane Nicoll 9 years ago
parent
commit
87b554d062
  1. 2
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java

2
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java

@ -148,7 +148,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService { @@ -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;
}
}

Loading…
Cancel
Save