-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support access the tracer context in spring gateway filter #539
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As protected, why static
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purpose was to serve as a internal-use static method
return instance; | ||
} | ||
|
||
protected static ContextSnapshot getContextSnapshot(Object o) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
// fetch trace ID | ||
String traceId = WebFluxSkyWalkingTraceContext.traceId(exchange); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: darknesstm <[email protected]>
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
CHANGES
log.