-
Notifications
You must be signed in to change notification settings - Fork 45
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
Baggage is lost within spring-statemachine #359
Comments
@marcingrzejszczak Could you help check we face this issue as well as critical in this moment as the TraceID no longer working. |
AFAIR there was some reactive stuff going on in the example. Can you please update to the latest versions and see if the problem persists? |
Hi @marcingrzejszczak, tried with the latest versions:
Unfortunately now I am not seeing the TRACE_ID in my logs at all:
Maybe I am setting up the baggage incorrectly?
|
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open. |
I'm not sure why this ticket was closed, I provided requested information. Is there any more info needed from me? |
Hey, it's accidental - we've attached a bot to close issues and it must have closed the issue. I'm reopening it. |
we are having this same issue, did you find a solution @davefarrelly ? |
@mrodal I haven't gotten around to actually fixing it yet, but I now believe it is due to a bad implementation on our side. We have implemented the action on our states by using the standard Action interface, but I suspect we actually need to switch to the ReactiveAction to get the context carried through the states. |
We are using spring webmvc and face the same issue of losing the tracing context. Im debugging the spring state machine code and the context seems to be getting lost on I believe the issue is on the |
We fixed it by removing log.info("log 1");
var sink = Sinks.one();
sink.asMono().flatMap(s->{
log.info("log 3"); // Context missing here
return Mono.just(1);
}).subscribe();
sink.emitValue("", Sinks.EmitFailureHandler.FAIL_FAST); related to: reactor/reactor-core#3887 |
cc @chemicL |
No need to open so many issues and keep discussing this so widely :) The spring-statemachine one should suffice, as that's where the problem lies. Please check my description of the problem: reactor/reactor-core#3887 (comment) |
Duplicate of spring-projects/spring-statemachine#1162 |
I have a project that is using spring-statemachine which was previously using
spring-cloud-sleuth
for context-propagation but since updating to spring-boot 3.X.X we have migrated tomicrometer-tracing
/context-propagation
.I have noticed that we are losing our custom baggage fields after we switch states in the state machine, and have created a basic reproducer spring-statemachine-with-micrometer.zip which produces the following logs when the endpoint
/statemachine/start
is called. The TRACE_ID disappears after "State changed to: START
"This behavior was only seen after the migration to micrometer-tracing.
Versions I am working with:
Also for reference I am attaching a version built using spring-boot-starter-webflux2.7.1 and spring-cloud-starter-sleuth:3.1.5 in which the
TRACE_ID
is correctly propagated throughout the statemachine spring-statemachine-with-sleuth.zipThe text was updated successfully, but these errors were encountered: