@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(value="spring.sleuth.grpc.enabled", matchIfMissing=true) @AutoConfigureAfter(value=net.devh.boot.grpc.common.autoconfigure.GrpcCommonTraceAutoConfiguration.class) @ConditionalOnBean(value=brave.grpc.GrpcTracing.class) public class GrpcServerTraceAutoConfiguration extends Object
Constructor and Description |
---|
GrpcServerTraceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
io.grpc.ServerInterceptor |
globalTraceServerInterceptorConfigurer(brave.grpc.GrpcTracing grpcTracing)
Configures a global server interceptor that applies brave's tracing logic to the requests.
|
@GrpcGlobalServerInterceptor @Order(value=2501) public io.grpc.ServerInterceptor globalTraceServerInterceptorConfigurer(brave.grpc.GrpcTracing grpcTracing)
grpcTracing
- The grpc tracing bean.