Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- CompletableFuture
- HashMap
- aws secretmanager
- grpc
- micrometer tracing
- Sleuth
- asyncconfigurer
- java
- java.util.list
- ResponseBody
- wire type
- java list
- jpa
- Spring Boot
- asynccustomautoconfiguration
- map
- list
- traceId
- java lambda
- DeferredImportSelector
- SpringMVC
- @FunctionalInterface
- traceasynccustomautoconfiguration
- kotlin
- elasticsearch
- awssecretsmanagerpropertysources
- Spring JPA
- spring
- spring MVC
- EnableWebMvc
Archives
- Today
- Total
목록spring cloud (1)
du.study기록공간
spring sleuth Executor를 bean으로 생성했을때 traceId가 공유되는 방식
오늘은 간단한 내용을 작성해보려 합니다. Spring 에서 로그 추적을 위해 traceId를 남기고자 sleuth를 사용하고 있습니다. 운영과정에서 일부 비동기 로직에서 traceId가 남지않는것을 확인하였고, 이 부분에 대해 확인한것을 기록하고자 합니다. 사실 해결법은 매우 간단하지만(검색하면 바로) 왜 동작하는지는 알고 바꾸고자 한번 작성하게되었습니다. 먼저 bean으로 생성하는경우를 확인하고자 합니니다. @Bean(name = "예시니까 세팅은 전부 1") public Executor threadPoolTaskExecutor() { ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); taskExecutor.setCorePoolSi..
스프링
2022. 11. 10. 00:31