3

What would be the equivalent of ReactorNettyHttpTracing (deprecated) in Spring Boot 3 with Micrometer + Brave?

@Bean
public ReactorNettyHttpTracing reactorNettyHttpTracing(HttpTracing httpTracing) {
    return ReactorNettyHttpTracing.create(httpTracing);
}

.......
return WebClient.builder()
                .clientConnector(new ReactorClientHttpConnector(reactorNettyHttpTracing(null).decorateHttpClient(httpClient)))
Alex
  • 4,987
  • 1
  • 8
  • 26
Rayyan
  • 107
  • 12
  • 1
    Netty `HttpClient’ supports Micrometer tracing https://projectreactor.io/docs/netty/release/reference/index.html#_tracing_4 and this is what spring team suggested “Prefer using the standard {@link reactor.netty.http.client.HttpClient} and * {@link reactor.netty.http.server.HttpServer} integration with“ – Alex Jan 08 '23 at 18:25
  • Thanks, looks like Spring Team is working on something like Spring Sleuth for Spring Boot 3 and WebFlux Reactive logging. https://github.com/spring-projects/spring-boot/issues/33372 – Rayyan Jan 10 '23 at 02:22
  • Spring Stelth will be just auto configuration and the core of this project got moved to Micrometer Tracing project and the instrumentations will be moved to Micrometer and all respective projects (no longer all instrumentations will be done in a single repository). – Alex Jan 10 '23 at 05:20
  • Having used to Spring Sleuth across many applications in Spring Boot 2, now that the same kind not being available in Spring Boot 3 is a tremendous rework :( – Rayyan Jan 11 '23 at 07:37
  • 1
    Checkout my issue here https://github.com/reactor/reactor-netty/issues/2850 there is also an example on my sample project here: https://github.com/grassehh/spring-boot-3-tracing-coroutine It is still in progress but the point is to find a replacement of the deprecated `ReactorNettyHttpTracing` class in Spring Boot 3 – GrassHopper Jul 17 '23 at 15:49

0 Answers0