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 a
span 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
Modifier and Type Method Description static MDCCurrentTraceContextcreate()Deprecated.static MDCCurrentTraceContextcreate(CurrentTraceContext delegate)Deprecated.TraceContextget()Deprecated.CurrentTraceContext.ScopemaybeScope(TraceContext context)Deprecated.CurrentTraceContext.ScopenewScope(TraceContext context)Deprecated.Methods inherited from class brave.propagation.CurrentTraceContext
decorateScope, executor, executorService, wrap, wrap
-
Method Details
-
create
Deprecated. -
create
Deprecated. -
get
Deprecated.- Specified by:
getin classCurrentTraceContext
-
newScope
Deprecated.- Specified by:
newScopein classCurrentTraceContext
-
maybeScope
Deprecated.- Overrides:
maybeScopein classCurrentTraceContext
-