happier2 opened a new issue, #13443:
URL: https://github.com/apache/skywalking/issues/13443

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   With Spring Cloud(version 2024.0.0) and Spring Cloud Gateway(version 4.2.0), 
Spring Cloud Gateway will dispatch requests to other services. What we expect 
is that every request that dispatched by gateway should have unique traceId  in 
the downstream micro-services. But, we found theses traceIds are duplicated 
when the concurrency of requests is very high.
   
   <img width="1429" height="659" alt="Image" 
src="https://github.com/user-attachments/assets/1d3ee190-9046-4386-badd-b635727e50bb";
 />
   
   We just log all these request's headers and bodies (micro-service just uses 
servlet container, which is tomcat). We can conclude that thread 
http-nio-48084-exec-9 and thread http-nio-48084-exec-5 have same traceId and 
same http header "sw8", while these two reuqests are different outer requests 
that have different request bodies.
   
   
   ### What you expected to happen
   
   I suspect that it is caused by this patch 
[#747](https://github.com/apache/skywalking-java/pull/747). This problem is 
only happened when concurrency is heavy.
   
   ### How to reproduce
   
   With Spring Cloud version 2024.0.0+, Spring Cloud Gateway(webflux) and one 
service with tomcat and concurrency is heavy.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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-unsubscr...@skywalking.apache.org.apache.org

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

Reply via email to