| Modifier and Type | Field and Description |
|---|---|
static SpanId |
SpanId.INVALID
The invalid span ID, which is all zeroes.
|
| Modifier and Type | Method and Description |
|---|---|
static SpanId |
SpanId.fromRandom() |
static SpanId |
SpanId.fromString(String str) |
static SpanId |
Tracer.getCurrentSpanId() |
SpanId[] |
Span.getParents()
Returns the parent IDs of the span.
The array will be empty if there are no parents.
|
SpanId[] |
MilliSpan.getParents() |
SpanId |
Span.getSpanId()
A pseudo-unique (random) number assigned to this span instance.
The spanId is immutable and cannot be changed.
|
SpanId |
TraceScope.getSpanId()
Returns the span ID which this scope is managing.
|
SpanId |
MilliSpan.getSpanId() |
SpanId |
SpanId.newChildId() |
| Modifier and Type | Method and Description |
|---|---|
int |
SpanId.compareTo(SpanId other) |
TraceScope |
Tracer.newScope(String description,
SpanId parentId)
Create a new trace scope.
|
MilliSpan.Builder |
MilliSpan.Builder.parents(SpanId[] parents) |
void |
Span.setParents(SpanId[] parents)
Set the parents of this span.
Any existing parents will be cleared by this call.
|
void |
MilliSpan.setParents(SpanId[] parents) |
MilliSpan.Builder |
MilliSpan.Builder.spanId(SpanId spanId) |
| Modifier and Type | Method and Description |
|---|---|
MilliSpan.Builder |
MilliSpan.Builder.parents(List<SpanId> parentList) |
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.