[Feature] Support Tracing for GlobalFilter and GatewayFilter in spring-cloud-gateway-plugin #12839
-
Search before asking
DescriptionIn Spring Cloud Gateway, GlobalFilter and GatewayFilter are crucial components for handling requests. However, in certain scenarios, we have encountered issues with the generation and propagation of traceId within these filters. This can lead to difficulties in correctly correlating and tracing requests that pass through the Gateway in a distributed tracing system. Here is a code snippet:
} My solution code:
Croe Code:
Use caseNo response Related issues目前我找到了以下issue编号,https://github.com/apache/skywalking/issues/6900;本次的新特性可以帮助他们在GlobalFilter获取traceId Are you willing to submit a pull request to implement this on your own?
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
GatewayFilterInterceptor should not have a field to hold the context. Because it is a Singleton Class, this will cause race conditions. |
Beta Was this translation helpful? Give feedback.
-
Further codes discussion should happen here, apache/skywalking-java#736 |
Beta Was this translation helpful? Give feedback.
-
@yqw570994511 Referring to this will be helpful for you.
|
Beta Was this translation helpful? Give feedback.
-
The final status of this discussion ends at #12860 |
Beta Was this translation helpful? Give feedback.
The final status of this discussion ends at #12860