Skip to content

Commit

Permalink
feat : add actuator
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Feb 28, 2024
1 parent b867772 commit 63db508
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 63db508

Please sign in to comment.