elastic / apm-agent-java

https://www.elastic.co/guide/en/apm/agent/java/current/index.html
Apache License 2.0
563 stars 320 forks source link

Spring6-Scheduled-null #3704

Open carl10086 opened 6 days ago

carl10086 commented 6 days ago

Describe the bug

Spring 6 @Scheduled entpoint trace.

what i see in ui:

Why SpringScheduled/null ?

Steps to reproduce

kotlin: 2.0 spring-boot: 3.2.3 spring: 6.1.4 jdk: 21 skywalking: 9.1.0

sample code:

    @Scheduled(fixedRate = 5, timeUnit = TimeUnit.SECONDS, scheduler = "myScheduler")
    fun method1(){
      ...
    }
JonasKunz commented 5 days ago

Could you provide the agent debug logs for your application?

Normally, @Scheduled transactions should just have the method name as transaction name.