Skip to content

Commit 1a09e7c

Browse files
authored
release: 2.2.8 (#404)
2 parents 0c7a0fe + 78e2106 commit 1a09e7c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/kotlin/org/gitanimals/supports/schedule/SchedulerTraceIdAspect.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ import org.gitanimals.core.IdGenerator
77
import org.gitanimals.core.filter.MDCFilter.Companion.TRACE_ID
88
import org.slf4j.MDC
99
import org.springframework.core.annotation.Order
10-
import org.springframework.scheduling.annotation.Scheduled
1110
import org.springframework.stereotype.Component
1211

1312
@Aspect
1413
@Component
1514
@Order(value = Int.MIN_VALUE)
1615
class 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()

0 commit comments

Comments
 (0)