Closed patpatpat123 closed 1 year ago
Currently it won't work out of the box. Please read this section of the docs on how to add tracing info to mdc https://micrometer.io/docs/observation#instrumentation_of_reactive_libraries
Very clear @marcingrzejszczak and thank you for the answer.
Is it ok for me to hope, one day, this will work out of the box please?
When Spring Cloud Sleuth and Zipkin were still around, this was possible without extra code change.
We are working on that as we speak and we've made some promissing progress
Thank you!
Only if you have it handy, do you mind pasting some sort of issue tracking link, or Jira ticket? If not, no worries, just disregard this message. Will keep my fingers crossed.
Hello Micrometer team,
Since this is my first ticket here, I would like to begin by saying thanks to those awesome samples. They are clear, simple, and provide a very nice starting point, especially with the latest SpringBoot 3 applications.
Just wanted to reach out as I am encountering an issue related to this repo.
I took a very basic sample from this repo, it is a web (non webflux) application. I made it "minimal reproducible" with only 50 lines of code:
The pom
the applicaiton.properties
the code
When running this, I can see the traces in the log. Here is a sample of the log output.
Everything is working fine, very happy.
Now I am just going to make a 4 characters change on the pom. Just 4 characters change, no change in the application.properties, no change in the code.
Here is the log I am getting (I believe it is 100% reproducible, please give it a go with a copy paste)
Expectation: this migration from web to webflux would still preserve the traces.
Actual: after the migration, all traces are lost
Could you please help on this issue?
Thank you