File tree Expand file tree Collapse file tree
src/main/kotlin/org/gitanimals/supports/schedule Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,16 +7,15 @@ import org.gitanimals.core.IdGenerator
77import org.gitanimals.core.filter.MDCFilter.Companion.TRACE_ID
88import org.slf4j.MDC
99import org.springframework.core.annotation.Order
10- import org.springframework.scheduling.annotation.Scheduled
1110import org.springframework.stereotype.Component
1211
1312@Aspect
1413@Component
1514@Order(value = Int .MIN_VALUE )
1615class SchedulerTraceIdAspect {
1716
18- @Around(" @annotation(scheduled )" )
19- fun putMdcFilter (joinPoint : ProceedingJoinPoint , scheduled : Scheduled ): Any? {
17+ @Around(" @annotation(org.springframework.scheduling.annotation.Scheduled )" )
18+ fun putMdcFilter (joinPoint : ProceedingJoinPoint ): Any? {
2019 return runCatching {
2120 MDC .put(TRACE_ID , IdGenerator .generate().toString())
2221 joinPoint.proceed()
You can’t perform that action at this time.
0 commit comments