You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/09/25 09:22:49 UTC

[GitHub] [skywalking] killGC opened a new issue #5561: multi-thread log can print traceid?

killGC opened a new issue #5561:
URL: https://github.com/apache/skywalking/issues/5561


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   when multi thread,how to print tid in new started thread?
   
   @Slf4j
   @RestController
   @RequestMapping("/demo")
   public class ThreadController {
       @RequestMapping("/health")
       public String  health(){
           log.info("my name is health");
           Thread thread = new Thread(new TestThread());
           thread.start();
           return "ok";
       }
   
       class TestThread implements Runnable{
   
           @Override
           public void run() {
               log.info("i am a thread");
           }
       }
   }
   
   
   log:
   2020-09-25 17:20:24.491 [TID:4962.61.16010256244470001] [http-nio-8079-exec-1] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] -Initializing Spring DispatcherServlet 'dispatcherServlet'
   2020-09-25 17:20:24.492 [TID:4962.61.16010256244470001] [http-nio-8079-exec-1] INFO  o.s.web.servlet.DispatcherServlet -Initializing Servlet 'dispatcherServlet'
   2020-09-25 17:20:24.502 [TID:4962.61.16010256244470001] [http-nio-8079-exec-1] INFO  o.s.web.servlet.DispatcherServlet -Completed initialization in 10 ms
   2020-09-25 17:20:24.561 [TID:4962.61.16010256244470001] [http-nio-8079-exec-1] INFO  com.apm.controller.ThreadController -my name is health
   2020-09-25 17:20:24.563 [TID:N/A] [Thread-25] INFO  com.apm.controller.ThreadController -i am a thread
   
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   skywalking 7.0, os linux, jre jdk8
   - Which company or project?
   
   - What happened?
   If possible, provide a way to reproduce the error. e.g. demo application, component version.
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5561:
URL: https://github.com/apache/skywalking/issues/5561#issuecomment-698825554


   That depends on the plugin implementation. I knew log4j2 plugin could support async log. Please read the document. If you want to enhance the plugin, welcome.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [skywalking] dbses edited a comment on issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
dbses edited a comment on issue #5561:
URL: https://github.com/apache/skywalking/issues/5561#issuecomment-1053915717


   Where is the document and how to resolve it? 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5561:
URL: https://github.com/apache/skywalking/issues/5561


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5561:
URL: https://github.com/apache/skywalking/issues/5561


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [skywalking] dbses edited a comment on issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
dbses edited a comment on issue #5561:
URL: https://github.com/apache/skywalking/issues/5561#issuecomment-1053915717


   Where is the document and how to resolve it? thanks!


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5561:
URL: https://github.com/apache/skywalking/issues/5561#issuecomment-698825554


   That depends on the plugin implementation. I knew log4j2 plugin could support async log. Please read the document. If you want to enhance the plugin, welcome.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [skywalking] dbses commented on issue #5561: multi-thread log can print traceid?

Posted by GitBox <gi...@apache.org>.
dbses commented on issue #5561:
URL: https://github.com/apache/skywalking/issues/5561#issuecomment-1053915717


   Where is the documentation and how to resolve it? 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org