candyleer opened a new issue #1241: TraceId is invalid in Logback AsyncAppender
   Please answer these questions before submitting your issue.
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [x] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   ### Question
   - What do you want to know?
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   - Which company or project?
   - What happen?
   If possible, provide a way for reproducing the error. e.g. demo application, 
component version.
   if we use async appender in logback,the traceId will be not printed,config
   <configuration scan="true" scanPeriod=" 5 seconds">
       <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
           <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
                   <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level 
[%tid]  %logger{56} --- %msg%n
       <appender name="ASYNC_PRINT" 
           <appender-ref ref="STDOUT"/>
       <root level="INFO">
           <appender-ref ref="ASYNC_PRINT"/>
   some log example,the log are in trace context
   2018-05-18 14:35:19.501 [http-nio-8081-exec-1] INFO  [TID:N/A] 47 
com.example.test.TestApplication ---  set jedis success:nn
   2018-05-18 14:35:19.501 [http-nio-8081-exec-1] INFO  [TID:N/A] 47 
com.example.test.TestApplication --- set jedis success:null
   I am working to resolve this problem cause async appender is widely used for 
log performance.
   ### Requirement or improvement
   - Please describe about your requirements or improvement suggestions.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to