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"| Modifier and Type | Method and Description |
|---|---|
static Slf4jCurrentTraceContext |
create() |
static Slf4jCurrentTraceContext |
create(brave.propagation.CurrentTraceContext delegate) |
brave.propagation.TraceContext |
get() |
brave.propagation.CurrentTraceContext.Scope |
newScope(brave.propagation.TraceContext currentSpan) |
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 © 2019 Pivotal Software, Inc.. All rights reserved.