Class BraveAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.tracing.BraveAutoConfiguration
@AutoConfiguration(before={MicrometerTracingAutoConfiguration.class,NoopTracerAutoConfiguration.class})
@ConditionalOnClass({brave.Tracer.class,io.micrometer.tracing.brave.bridge.BraveTracer.class})
@EnableConfigurationProperties(TracingProperties.class)
@Import({org.springframework.boot.actuate.autoconfigure.tracing.BravePropagationConfigurations.PropagationWithoutBaggage.class,org.springframework.boot.actuate.autoconfigure.tracing.BravePropagationConfigurations.PropagationWithBaggage.class,org.springframework.boot.actuate.autoconfigure.tracing.BravePropagationConfigurations.NoPropagation.class})
public class BraveAutoConfiguration
extends Object
Auto-configuration
for Brave.- Since:
- 3.0.0
- Author:
- Moritz Halbritter, Marcin Grzejszczak, Jonatan Ivanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbrave.propagation.CurrentTraceContext
braveCurrentTraceContext
(List<brave.propagation.CurrentTraceContext.ScopeDecorator> scopeDecorators, List<brave.propagation.CurrentTraceContextCustomizer> currentTraceContextCustomizers) brave.sampler.Sampler
braveSampler
(TracingProperties properties) brave.Tracer
braveTracer
(brave.Tracing tracing) brave.Tracing
braveTracing
(Environment environment, TracingProperties properties, List<brave.handler.SpanHandler> spanHandlers, List<brave.TracingCustomizer> tracingCustomizers, brave.propagation.CurrentTraceContext currentTraceContext, brave.propagation.Propagation.Factory propagationFactory, brave.sampler.Sampler sampler)
-
Constructor Details
-
BraveAutoConfiguration
public BraveAutoConfiguration()
-
-
Method Details
-
braveTracing
@Bean @ConditionalOnMissingBean public brave.Tracing braveTracing(Environment environment, TracingProperties properties, List<brave.handler.SpanHandler> spanHandlers, List<brave.TracingCustomizer> tracingCustomizers, brave.propagation.CurrentTraceContext currentTraceContext, brave.propagation.Propagation.Factory propagationFactory, brave.sampler.Sampler sampler) -
braveTracer
-
braveCurrentTraceContext
@Bean @ConditionalOnMissingBean public brave.propagation.CurrentTraceContext braveCurrentTraceContext(List<brave.propagation.CurrentTraceContext.ScopeDecorator> scopeDecorators, List<brave.propagation.CurrentTraceContextCustomizer> currentTraceContextCustomizers) -
braveSampler
@Bean @ConditionalOnMissingBean public brave.sampler.Sampler braveSampler(TracingProperties properties)
-