Skip to content

Commit

Permalink
Issue ReactiveX#161: Fixed Spring Boot Prometheus AutoConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Winkler committed Sep 15, 2017
1 parent e590f7b commit 3929447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.github.resilience4j.prometheus.CircuitBreakerExports;
import io.prometheus.client.CollectorRegistry;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
Expand All @@ -29,7 +28,7 @@
*/
@Configuration
@AutoConfigureAfter(value = CircuitBreakerAutoConfiguration.class)
@ConditionalOnClass(CollectorRegistry.class)
@ConditionalOnClass(CircuitBreakerExports.class)
public class CircuitBreakerPrometheusAutoConfiguration {
@Bean
public CircuitBreakerExports circuitBreakerPrometheusCollector(CircuitBreakerRegistry circuitBreakerRegistry){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import io.github.resilience4j.prometheus.RateLimiterExports;
import io.github.resilience4j.ratelimiter.RateLimiterRegistry;
import io.prometheus.client.CollectorRegistry;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
Expand All @@ -29,7 +28,7 @@
*/
@Configuration
@AutoConfigureAfter(value = RateLimiterAutoConfiguration.class)
@ConditionalOnClass(CollectorRegistry.class)
@ConditionalOnClass(RateLimiterExports.class)
public class RateLimiterPrometheusAutoConfiguration {
@Bean
public RateLimiterExports rateLimiterPrometheusCollector(RateLimiterRegistry rateLimiterRegistry){
Expand Down

0 comments on commit 3929447

Please sign in to comment.