28

If I understand the answer to this question correctly, Spring Cloud Sleuth will be replaced by Micormeter Tracing with Spring Boot 3. My experiments with Spring Boot 3 milestone 3 to implement tracing have failed so far. Is there an example project somewhere that I can use to guide me.

BTW: Here are my experiments https://github.com/stse/spring-boot-otel. I try to use micrometer tracing and open telemetry to push traces to new relic via Otlp and Grpc.

Brian Clozel
  • 56,583
  • 15
  • 167
  • 176
stse
  • 281
  • 1
  • 3
  • 6

3 Answers3

2

This blogpost from Spring Team will help to set it up: https://spring.io/blog/2022/10/12/observability-with-spring-boot-3

Also, I have come up with a sample Spring Boot 3 + Micrometer project here - https://github.com/kishorek/java/tree/main/spring-observability-demo.

I am using Zipkin Brave as distributed tracing implementation. I have created a python service consumed by the Spring boot service. Please refer to the README.

KishoreK
  • 892
  • 5
  • 14
0

I also refered to the post on Spring Blog too,

then I made a little improvement on integrating with Spring Aspect to log

  1. set the logger with the class name correctly (instead of the MyHandler )
  2. log the method args by using the ProceedingJoinPoint

feel free to take a look on my article and the Pull request to do so on my side project.

Noah Hsu
  • 36
  • 3
0

Here are the links to different guides for Spring Boot 3 & Micrometer Tracing Integration, one can follow depending on the Tech Stack:

  1. OpenTelemetry + Jaeger
  2. gRPC + OpenTelemetry + Jaeger
  3. Brave + Zipkin
  4. gRPC + Brave + Zipkin
  5. OpenTelemetry + Zipkin
  6. gRPC + OpenTelemetry + Zipkin

And common to all, enabling Micrometer Tracing for:

Amith Kumar
  • 4,400
  • 1
  • 21
  • 28