zijin-m edited a comment on pull request #22:
URL: https://github.com/apache/skywalking-nodejs/pull/22#issuecomment-758466927


   > > So,I Add clear before newEntrySpan, Is there a better solution, or am I 
misunderstanding?
   > 
   > If the context is not cleared, then this should be a bug. The entry span 
doesn't mean the first span.
   
   
   Yes, after my test, it seems that `AsyncLocalStorage` did not recreate the 
async context for the new request event, which caused `getStore` to obtain the 
asyncState of the **previous request event**, which may be related to the 
browser’s TCP Connection Reuse, because when I use `ab` or `curl` for test and 
there is no such problem


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


Reply via email to