public final class TracerAdapter
extends java.lang.Object
| Constructor | Description |
|---|---|
TracerAdapter() |
| Modifier and Type | Method | Description |
|---|---|---|
static Span |
getServerSpan(Tracer tracer,
ServerSpanThreadBinder threadBinder) |
Returns a span representing the sampled status of the current server span or null if there's no
span attached to the current thread.
|
static Brave |
newBrave(Tracer tracer) |
|
static Brave |
newBrave(Tracer tracer,
ServerClientAndLocalSpanState state) |
Constructs a new Brave instance that sends traces to the provided tracer.
|
static void |
setServerSpan(TraceContext context,
ServerSpanThreadBinder threadBinder) |
Sets a span associated with the context as the current server span.
|
static Span |
toSpan(TraceContext context) |
|
static Span |
toSpan(Tracer tracer,
SpanId spanId) |
|
static Span |
toSpan(Tracer tracer,
Span span) |
|
static TraceContext |
toTraceContext(SpanId spanId) |
public static Brave newBrave(Tracer tracer, ServerClientAndLocalSpanState state)
state - for in-process propagation. Note CommonSpanState.endpoint() is ignored.@Nullable public static Span getServerSpan(Tracer tracer, ServerSpanThreadBinder threadBinder)
public static void setServerSpan(TraceContext context, ServerSpanThreadBinder threadBinder)
public static TraceContext toTraceContext(SpanId spanId)
public static Span toSpan(TraceContext context)
Copyright © 2018 OpenZipkin. All rights reserved.