0

I use an injected brave.Tracing that comes with Spring Cloud Sleuth to build the GRPC tracing interceptor like this...

public GrpcServer(
      final Set<BindableService> grpcServices,
      final Tracing tracing,
      @Value("${grpc.port:50000}") int port) {
    final var interceptor = GrpcTracing.create(tracing).newServerInterceptor();
    var b = ServerBuilder.forPort(port).executor(executor);
    grpcServices.forEach(b::addService);
    log.info("{} listening on {}", "server", port);

    this.healthStatusManager = new HealthStatusManager();
    this.server =
        b.addService(ProtoReflectionService.newInstance())
            .addService(healthStatusManager.getHealthService())
            .intercept(interceptor)
            .build();
}

But since Spring Boot 3.0 no longer comes with Sleuth, I don't have the brave.Tracing available anymore. How do I get it back?

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265

0 Answers0