- 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 aspan is current. These can be used in log correlation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class brave.propagation.CurrentTraceContext
CurrentTraceContext.Builder, CurrentTraceContext.Default, CurrentTraceContext.Scope, CurrentTraceContext.ScopeDecorator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ThreadContextCurrentTraceContextcreate()Deprecated.static ThreadContextCurrentTraceContextcreate(CurrentTraceContext delegate)Deprecated.TraceContextget()Deprecated.CurrentTraceContext.ScopenewScope(TraceContext currentSpan)Deprecated.-
Methods inherited from class brave.propagation.CurrentTraceContext
decorateScope, executor, executorService, maybeScope, wrap, wrap
-
-
-
-
Method Detail
-
create
public static ThreadContextCurrentTraceContext create()
Deprecated.
-
create
public static ThreadContextCurrentTraceContext create(CurrentTraceContext delegate)
Deprecated.
-
get
public TraceContext get()
Deprecated.- Specified by:
getin classCurrentTraceContext
-
newScope
public CurrentTraceContext.Scope newScope(@Nullable TraceContext currentSpan)
Deprecated.- Specified by:
newScopein classCurrentTraceContext
-
-