[Bug] Description traceId cannot be obtained in webflux when an active throw exception occurs #12679
Replies: 3 comments 1 reply
-
Do you follow the docs? I don't think your way is correct. |
Beta Was this translation helpful? Give feedback.
-
I've seen this documentation, but it's mostly a manual scheme that keeps tracking from the client. Because my entry is the current controller. I tried to use webfilter for pre-filtering, but traceId was not generated for this stage. No traceId is printed in mdc when I throw a runtime exception. I hope there is a demo that can handle webflux exceptions for your reference. @wu-sheng |
Beta Was this translation helpful? Give feedback.
-
Expect TID to print normally and be captured globally when an exception is thrown.
|
Beta Was this translation helpful? Give feedback.
-
Search before asking
Apache SkyWalking Component
Java Agent (apache/skywalking-java)
What happened
The interface is as follows. When I made the call, I found that I could not print the traceId.
The error log is as follows
What you expected to happen
Whether the java agent does not support webflux sufficiently to print traceids at error points
How to reproduce
The dependencies are as follows. The springboot version is 3.3.2
The test demo is as follows: A traceId cannot be printed in logback and a global exception is found that TraceContext.traceId() is N/A
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions