@Configuration(proxyBeanMethods=false) @ConditionalOnProperty(value="spring.sleuth.grpc.enabled", matchIfMissing=true) @AutoConfigureAfter(name="org.springframework.cloud.sleuth.autoconfig.brave.BraveAutoConfiguration") @ConditionalOnClass(value={brave.Tracing.class,brave.grpc.GrpcTracing.class}) public class GrpcCommonTraceAutoConfiguration extends Object
Can be disabled using spring.sleuth.grpc.enabled=false
.
Should run after BraveAutoConfiguration
if present to ensure the required beans exist.
Constructor and Description |
---|
GrpcCommonTraceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
brave.grpc.GrpcTracing |
grpcTracing(brave.Tracing tracing) |
@Bean @ConditionalOnMissingBean public brave.grpc.GrpcTracing grpcTracing(brave.Tracing tracing)