Package brave.context.log4j2
Class ThreadContextCurrentTraceContext
java.lang.Object
brave.propagation.CurrentTraceContext
brave.context.log4j2.ThreadContextCurrentTraceContext
@Deprecated public final class ThreadContextCurrentTraceContext extends CurrentTraceContext
Deprecated.
use ThreadContextScopeDecorator. This will be removed in Brave v6.
Adds ThreadContext 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 ThreadContextCurrentTraceContext
create()
Deprecated.static ThreadContextCurrentTraceContext
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 Details
-
create
Deprecated. -
create
Deprecated. -
get
Deprecated.- Specified by:
get
in classCurrentTraceContext
-
newScope
Deprecated.- Specified by:
newScope
in classCurrentTraceContext
-
maybeScope
Deprecated.- Overrides:
maybeScope
in classCurrentTraceContext
-