Member-only story
Distributed Tracing — Spring Boot, Micrometer And ForkJoinPool
Prequel: Please check my other blog(s) for setup required to enable Micrometer Tracing in a Spring Boot App (depending on your Tech Stack):
1. OpenTelemetry + Jaeger
2. gRPC + OpenTelemetry + Jaeger
3. Brave + Zipkin
4. gRPC + Brave + Zipkin
5. OpenTelemetry + Zipkin
6. gRPC + OpenTelemetry + Zipkin
In this blog, we will focus on extending the tracing context propagation to Java native ForkJoinPool feature.
At time of writing this in Jun 2023, Micrometer doesn’t support automatic tracing and context propagation configuration with ForkJoinPool threads (ForkJoinWorkerThread
). There are two open issues with Micrometer team which once fixed will enable better native support: