4

I have a Spring Boot service that I am trying to implement tracing using Micrometer Tracing. I assume all I had to do was include the the following in my pom.xml and it would just work:

<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-tracing</artifactId>
</dependency>

Adding the above does nothing. I do have Spring Actuator as well. I've tried adding micrometer-tracing-bridge-brave but that was a no go. With Spring Cloud Slueth and everything just worked with autoconfiguration and I've read some post that state Micrometer tracing work with Spring MVC with no additional configuration. My question is how do you configure Micrometer Tracing to work with Spring Webflux? Or is Spring Webflux not supported yet?

Thanks in advance!!

UPDATE:

I've also tried the following in the static void main method:

Hooks.enableAutomaticContextPropagation();

This didn't work either. If anyone has gotten tracing to with using Micrometer an example would be awesome!

Joseph Freeman
  • 1,644
  • 4
  • 24
  • 43

0 Answers0