Skip to content

Commit

Permalink
[FEAT] circuitbreaker config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ohksj77 committed Mar 10, 2024
1 parent 887d74c commit 515c8af
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-reactor-netty'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.github.resilience4j:resilience4j-spring-boot3:2.1.0'
implementation 'io.github.resilience4j:resilience4j-spring-boot2:2.2.0'

implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.twtw.backend.config.circuitbreaker;

import org.springframework.boot.actuate.health.SimpleStatusAggregator;
import org.springframework.boot.actuate.health.StatusAggregator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Resilience4jConfig {

@Bean
public StatusAggregator statusAggregator() {
return new SimpleStatusAggregator();
}
}
2 changes: 1 addition & 1 deletion backend/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ management:
endpoints:
web:
exposure:
include: *
include: ["metrics", "prometheus", "circuitbreakers", "circuitbreakerevents"]
health:
circuitbreakers:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion backend/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ management:
endpoints:
web:
exposure:
include: *
include: [ "metrics", "prometheus", "circuitbreakers", "circuitbreakerevents" ]
health:
circuitbreakers:
enabled: true
Expand Down

0 comments on commit 515c8af

Please sign in to comment.