Class CommonTracingAutoConfiguration
java.lang.Object
com.netflix.genie.common.internal.spring.autoconfigure.CommonTracingAutoConfiguration
Auto configuration for common tracing components within Genie server and agent.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvide aBraveTagAdapter
instance if no other has been provided.Provide an implementation ofTracePropagator
if no other has been defined.braveTracingCleaner
(Set<zipkin2.reporter.AsyncReporter<?>> reporters) Provide aBraveTracingCleanup
based on the context.braveTracingComponents
(brave.Tracer tracer, BraveTracePropagator tracePropagator, BraveTracingCleanup tracingCleanup, BraveTagAdapter tagAdapter) Provide aBraveTracingComponents
instance based on Brave if no other has been provided.
-
Constructor Details
-
CommonTracingAutoConfiguration
public CommonTracingAutoConfiguration()
-
-
Method Details
-
braveTracePropagator
@Bean @ConditionalOnMissingBean(BraveTracePropagator.class) public EnvVarBraveTracePropagatorImpl braveTracePropagator()Provide an implementation ofTracePropagator
if no other has been defined.- Returns:
- instance of
EnvVarBraveTracePropagatorImpl
-
braveTracingCleaner
@Bean @ConditionalOnMissingBean(BraveTracingCleanup.class) public BraveTracingCleanup braveTracingCleaner(Set<zipkin2.reporter.AsyncReporter<?>> reporters) Provide aBraveTracingCleanup
based on the context.- Parameters:
reporters
- AnyAsyncReporter
instances configured- Returns:
- A
BraveTracingCleanup
instance
-
braveTagAdapter
@Bean @ConditionalOnMissingBean(BraveTagAdapter.class) public DefaultBraveTagAdapterImpl braveTagAdapter()Provide aBraveTagAdapter
instance if no other has been provided.- Returns:
- A
DefaultBraveTagAdapterImpl
instance which just directly applies the tags to the span
-
braveTracingComponents
@Bean @ConditionalOnMissingBean(BraveTracingComponents.class) public BraveTracingComponents braveTracingComponents(brave.Tracer tracer, BraveTracePropagator tracePropagator, BraveTracingCleanup tracingCleanup, BraveTagAdapter tagAdapter) Provide aBraveTracingComponents
instance based on Brave if no other has been provided.- Parameters:
tracer
- TheTracer
instance to usetracePropagator
- TheBraveTracePropagator
to usetracingCleanup
- TheBraveTracingCleanup
to usetagAdapter
- TheBraveTagAdapter
instance to use- Returns:
- A
BraveTracingComponents
instance
-