Add ability to disable hystrix metrics

fixes gh-781
This commit is contained in:
Spencer Gibb
2016-01-20 13:06:13 -07:00
parent 0b9fc290d2
commit 3fb26f69e5

View File

@@ -86,6 +86,7 @@ public class HystrixCircuitBreakerConfiguration {
}
@Configuration
@ConditionalOnProperty(value = "hystrix.metrics.enabled", matchIfMissing = true)
@ConditionalOnClass({ HystrixMetricsPoller.class, GaugeService.class })
protected static class HystrixMetricsPollerConfiguration implements SmartLifecycle {