cjxiong opened a new issue #6758:
URL: https://github.com/apache/skywalking/issues/6758


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ v] Question or discussion
    
   ___
   ### Question
   - What do you want to know?
   I quoted in the Spring project
   
   `    <dependency>
                        <groupId>org.apache.skywalking</groupId>
                        <artifactId>apm-toolkit-trace</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.apache.skywalking</groupId>
                        <artifactId>apm-toolkit-logback-1.x</artifactId>
                </dependency>`
   I need to print the parameters in AOP when the method is called
   
   `    @Before("execution(public * com.apis..*.*(..))" + "||execution(public * 
com.provider..*.*(..))")
       public void before(JoinPoint point) {
           this.printMethodParams(point);
       }`
   
   `public void printMethodParams(JoinPoint point) {
    String traceId = TraceContext.traceId();
   }`
   At this time, the value of traceId is Ignored_Trace
   
   ___
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   SkyWalking 8.5
    ___
   ### Requirement or improvement
   I want to know how to output traceId correctly.
   Thank you
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to