public interface DistributedTracer
| Modifier and Type | Interface and Description |
|---|---|
static class |
DistributedTracer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DistributedTracer.Builder |
builder() |
<C> Span |
createSpan(java.lang.String operationName,
C carrier,
java.util.function.Function<C,java.util.Map<java.lang.String,java.lang.String>> extractor)
Create a span from a remote context of some type, which will generally be
an
HttpRequest. |
Span |
createSpan(java.lang.String operation,
Span parent)
A distributed trace is made of a series of
Spans, which are either
independent or have a parent/child relationship. |
Span |
getActiveSpan()
Get the currently active span, which may be
null. |
static DistributedTracer.Builder builder()
Span createSpan(java.lang.String operation, Span parent)
Spans, which are either
independent or have a parent/child relationship. Creating a span will make
it the currently active Span, as returned by
getActiveSpan().parent - The parent span. If this is null, then the span is
assumed to be independent.<C> Span createSpan(java.lang.String operationName, C carrier, java.util.function.Function<C,java.util.Map<java.lang.String,java.lang.String>> extractor)
HttpRequest.Span getActiveSpan()
null.