Slf4jScopeDecorator will be used@Deprecated public final class Slf4jCurrentTraceContext extends brave.propagation.CurrentTraceContext
span is current. These can
be used in log correlation. Supports backward compatibility of MDC entries by adding
legacy "X-B3" entries to MDC context "X-B3-TraceId", "X-B3-ParentSpanId", "X-B3-SpanId"
and "X-B3-Sampled"
Due to the migration to CurrentTraceContext.ScopeDecorator
approach, we are making the default implementation package scope since you can register
your own implementation of the Scope Decorator.| Modifier and Type | Method and Description |
|---|---|
static Slf4jCurrentTraceContext |
create()
Deprecated.
|
static Slf4jCurrentTraceContext |
create(brave.propagation.CurrentTraceContext delegate)
Deprecated.
|
brave.propagation.TraceContext |
get()
Deprecated.
|
brave.propagation.CurrentTraceContext.Scope |
newScope(brave.propagation.TraceContext currentSpan)
Deprecated.
|
public static Slf4jCurrentTraceContext create()
public static Slf4jCurrentTraceContext create(brave.propagation.CurrentTraceContext delegate)
public brave.propagation.TraceContext get()
get in class brave.propagation.CurrentTraceContextpublic brave.propagation.CurrentTraceContext.Scope newScope(@Nullable
brave.propagation.TraceContext currentSpan)
newScope in class brave.propagation.CurrentTraceContextCopyright © 2021 Pivotal Software, Inc.. All rights reserved.