diff --git a/backend/bang-ggood/src/main/java/com/bang_ggood/global/config/MonitoringConfig.java b/backend/bang-ggood/src/main/java/com/bang_ggood/global/config/MonitoringConfig.java index 52208abdc..6e2f30753 100644 --- a/backend/bang-ggood/src/main/java/com/bang_ggood/global/config/MonitoringConfig.java +++ b/backend/bang-ggood/src/main/java/com/bang_ggood/global/config/MonitoringConfig.java @@ -5,6 +5,8 @@ import io.micrometer.core.instrument.MeterRegistry; import jakarta.annotation.PostConstruct; import lombok.RequiredArgsConstructor; +import org.springframework.boot.actuate.web.exchanges.InMemoryHttpExchangeRepository; +import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @RequiredArgsConstructor @@ -21,4 +23,9 @@ public void initMetrics() { meterRegistry.gauge("total.checklist.count", this, value -> monitoringChecklistRepository.countActiveChecklists()); } + + @Bean + public InMemoryHttpExchangeRepository createTraceRepository() { + return new InMemoryHttpExchangeRepository(); + } }