Package brave.propagation
Class CurrentTraceContext.Builder
java.lang.Object
brave.propagation.CurrentTraceContext.Builder
- Direct Known Subclasses:
StrictCurrentTraceContext.Builder
,ThreadLocalCurrentTraceContext.Builder
- Enclosing class:
- CurrentTraceContext
public abstract static class CurrentTraceContext.Builder extends Object
Implementations of this allow standardized configuration, for example scope decoration.
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CurrentTraceContext.Builder
addScopeDecorator(CurrentTraceContext.ScopeDecorator scopeDecorator)
Implementations call decorators in order to add features like log correlation to a scope.abstract CurrentTraceContext
build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addScopeDecorator
public CurrentTraceContext.Builder addScopeDecorator(CurrentTraceContext.ScopeDecorator scopeDecorator)Implementations call decorators in order to add features like log correlation to a scope.- Since:
- 5.2
-
build
-