Support access the tracer context in spring gateway filter#539
Support access the tracer context in spring gateway filter#539wu-sheng merged 8 commits intoapache:mainfrom
Conversation
|
Hi, this feature should be good. But you instrument a lot of things, could you try to put a doc about why you are instrumenting? And why there are so many things have to be done? |
I add a [Feature] issues linked to this. |
|
I am not sure why, but this PR doesn't drive CI running. |
I also see the same problem in #541 |
|
It may be that the github actions of my account were banned before, and I didn't continue to pay attention without much impact, so I will submitted the a ticket and deal with that. |
|
You need to resolve conflicts before we can run the CI |
There was no conflict, still not working. |
My Github Actions now works normally... |
|
Could you rebase your commits, 14 commits for now... |
| @Override | ||
| public void handleMethodException(Class clazz, Method method, Object[] allArguments, Class<?>[] parameterTypes, | ||
| Throwable t) { | ||
| LOGGER.error("Failed to getDefault segment Id.", t); |
There was a problem hiding this comment.
What is default segment ID? Anything not default?
...pache/skywalking/apm/toolkit/activation/webflux/WebFluxSkyWalkingTraceContextActivation.java
Outdated
Show resolved
Hide resolved
|
|
||
| public abstract class WebFluxSkyWalkingStaticMethodsAroundInterceptor implements StaticMethodsAroundInterceptor { | ||
|
|
||
| protected static EnhancedInstance getInstance(Object o) { |
There was a problem hiding this comment.
purpose was to serve as a internal-use static method
| return instance; | ||
| } | ||
|
|
||
| protected static ContextSnapshot getContextSnapshot(Object o) { |
| // fetch trace ID | ||
| String traceId = WebFluxSkyWalkingTraceContext.traceId(exchange); |
There was a problem hiding this comment.
Please update all APIs you added. This is an official doc, we should provide a complete version.
|
BTW , If the feature of apache/skywalking#10862 is implemented with minimal modifications, it seems that only the e.g. |
|
Good catch. @darknesstm Let's minimal the changes. |
In this context |
Make sense. You are correct. Keep what you have built. But please update others accordingly. |
8e121f7 to
b6bb310
Compare
b6bb310 to
51ba252
Compare
Co-authored-by: darknesstm <askkoy@163.com>


If this is non-trivial feature, paste the links/URLs to the design doc.
Update the documentation to include this new feature.
Tests(including UT, IT, E2E) are added to verify the new feature.
If it's UI related, attach the screenshots below.
If this pull request closes/resolves/fixes an existing issue, replace the issue number. [Feature] Support access the tracer context in the spring gateway filter skywalking#10862
Update the
CHANGESlog.