public abstract class SpanId extends Object
| Modifier and Type | Method and Description |
|---|---|
static SpanId |
create(long traceId,
long spanId,
Long parentSpanId)
Creates a new span id.
|
abstract Long |
getParentSpanId()
Get parent span id.
|
abstract long |
getSpanId()
Get span id.
|
abstract long |
getTraceId()
Get Trace id.
|
String |
toString() |
public static SpanId create(long traceId, long spanId, @Nullable Long parentSpanId)
traceId - Trace Id.spanId - Span Id.parentSpanId - Nullable parent span id.public abstract long getTraceId()
public abstract long getSpanId()
@Nullable public abstract Long getParentSpanId()
null.Copyright © 2015. All rights reserved.