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 2019/06/15 08:41:01 UTC

[GitHub] [skywalking] Arugal opened a new issue #2880: TracingContext optimize

Arugal opened a new issue #2880: TracingContext optimize
URL: https://github.com/apache/skywalking/issues/2880
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [x] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [x] Feature or performance improvement
   
   ___
   ### Requirement or improvement
   https://github.com/apache/skywalking/blob/f414d72dd5fa15f4c4583a5c081022b0da5be28f/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java#L82-L91
   https://github.com/apache/skywalking/blob/f414d72dd5fa15f4c4583a5c081022b0da5be28f/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java#L416-L420
   https://github.com/apache/skywalking/blob/f414d72dd5fa15f4c4583a5c081022b0da5be28f/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/TracingContext.java#L430-L444
   
   IsRunningInAsyncMode is created when true
       @Override public AbstractTracerContext awaitFinishAsync() {
           isRunningInAsyncMode = true;
           if(asyncFinishLock == null){
               synchronized (this) {
                   if(asyncFinishLock == null) {
                       asyncFinishLock = new ReentrantLock();
                   }
               }
           }
           asyncSpanCounter.addAndGet(1);
           return this;
       }

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


With regards,
Apache Git Services