diff --git a/build.gradle b/build.gradle index 291357ef..c7b8ee89 100644 --- a/build.gradle +++ b/build.gradle @@ -21,6 +21,9 @@ repositories { dependencies { + // Actuator + implementation 'org.springframework.boot:spring-boot-starter-actuator' + // Caffeine implementation 'org.springframework.boot:spring-boot-starter-cache' implementation 'com.github.ben-manes.caffeine:caffeine' diff --git a/src/main/java/usw/suwiki/global/config/ActuatorHttpExchangeConfig.java b/src/main/java/usw/suwiki/global/config/ActuatorHttpExchangeConfig.java new file mode 100644 index 00000000..dc5df291 --- /dev/null +++ b/src/main/java/usw/suwiki/global/config/ActuatorHttpExchangeConfig.java @@ -0,0 +1,14 @@ +package usw.suwiki.global.config; + +import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class ActuatorHttpExchangeConfig { + + @Bean + public InMemoryHttpTraceRepository inMemoryHttpTraceRepository() { + return new InMemoryHttpTraceRepository(); + } +}