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?