-
public interface CurrentTraceContextCustomizerThis allows configuration plugins to collaborate on building an instance ofCurrentTraceContext.For example, a customizer can
add a scope decoratorwithout affecting the the implementation (like thread locals).This also allows one object to customize both
ExtraFieldPropagation, viaExtraFieldCustomizer, and integration like MDC (log) correlation, by implementing both customizer interfaces.Integration examples
In practice, a dependency injection tool applies a collection of these instances prior to
building the tracing instance. For example, an injectedList<CurrentTraceContextCustomizer>parameter to a provider ofCurrentTraceContext.Here are some examples, in alphabetical order:
- Since:
- 5.7
- See Also:
ExtraFieldCustomizer,TracingCustomizer
-
-
Field Summary
Fields Modifier and Type Field Description static CurrentTraceContextCustomizerNOOPUse to avoid comparing against null references
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcustomize(CurrentTraceContext.Builder builder)
-
-
-
Field Detail
-
NOOP
static final CurrentTraceContextCustomizer NOOP
Use to avoid comparing against null references
-
-
Method Detail
-
customize
void customize(CurrentTraceContext.Builder builder)
-
-