Package brave.context.slf4j
Class MDCCurrentTraceContext
- java.lang.Object
-
- brave.propagation.CurrentTraceContext
-
- brave.context.slf4j.MDCCurrentTraceContext
-
@Deprecated public final class MDCCurrentTraceContext extends CurrentTraceContext
Deprecated.use MDCScopeDecorator. This will be removed in Brave v6.Adds MDC properties "traceId", "parentId" and "spanId" when aspan is current
. These can be used in log correlation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class brave.propagation.CurrentTraceContext
CurrentTraceContext.Default, CurrentTraceContext.Scope, CurrentTraceContext.ScopeDecorator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MDCCurrentTraceContext
create()
Deprecated.static MDCCurrentTraceContext
create(CurrentTraceContext delegate)
Deprecated.TraceContext
get()
Deprecated.CurrentTraceContext.Scope
maybeScope(TraceContext context)
Deprecated.CurrentTraceContext.Scope
newScope(TraceContext context)
Deprecated.-
Methods inherited from class brave.propagation.CurrentTraceContext
decorateScope, executor, executorService, wrap, wrap
-
-
-
-
Method Detail
-
create
public static MDCCurrentTraceContext create()
Deprecated.
-
create
public static MDCCurrentTraceContext create(CurrentTraceContext delegate)
Deprecated.
-
get
public TraceContext get()
Deprecated.- Specified by:
get
in classCurrentTraceContext
-
newScope
public CurrentTraceContext.Scope newScope(@Nullable TraceContext context)
Deprecated.- Specified by:
newScope
in classCurrentTraceContext
-
maybeScope
public CurrentTraceContext.Scope maybeScope(TraceContext context)
Deprecated.- Overrides:
maybeScope
in classCurrentTraceContext
-
-