@Configuration @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 |
---|---|
GlobalServerInterceptorConfigurer |
globalTraceServerInterceptorConfigurer(brave.grpc.GrpcTracing grpcTracing)
Configures a global server interceptor that applies brave's tracing logic to the requests.
|
@Bean public GlobalServerInterceptorConfigurer globalTraceServerInterceptorConfigurer(brave.grpc.GrpcTracing grpcTracing)
grpcTracing
- The grpc tracing bean.