shining-stars-l opened a new issue, #13385:
URL: https://github.com/apache/skywalking/issues/13385

   ### 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
   
   1. In Gateway, the filters use TraceContext.putCorrelation to place custom 
IDs.
   ```java
   String custom_request_id = 
request.getHeaders().getFirst("custom_request_id");
   if (StringUtil.isNotEmpty(custom_request_id)) {
       TraceContext.putCorrelation("custom_request_id", custom_request_id);
   }
   ```
   2. In the subsequent user services, the custom ID cannot be obtained.
   ```java
   Optional<String> op = TraceContext.getCorrelation("custom_request_id");
   ```
   
   ### What you expected to happen
   
   I think it's because of Gateway's webflux. Because for regular services, 
such as when the user service calls TraceContext.putCorrelation, and then 
through Feign calls the order service, the order service can obtain it.
   
   ### How to reproduce
   
   - springboot:2.3.12.RELEASE
   - gateway:2.2.9.RELEASE
   - skywalking-java-agent:9.3.0
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] 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