Browse Source

Add ability to disable hystrix metrics

fixes gh-781
pull/6/head
Spencer Gibb 9 years ago
parent
commit
3fb26f69e5
  1. 1
      spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java

1
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java

@ -86,6 +86,7 @@ public class HystrixCircuitBreakerConfiguration { @@ -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 {

Loading…
Cancel
Save