public interface InMemorySpan extends io.opentracing.Span, InMemoryTraceState
Modifier and Type | Method and Description |
---|---|
InMemorySpanContext |
context() |
java.lang.Iterable<? extends InMemorySpanLog> |
logs()
Returns an unmodifiable view of logs.
|
default java.lang.String |
nonnullParentSpanIdHex()
Returns the parent span ID in hex.
|
java.lang.String |
operationName()
Returns the operation name.
|
default java.lang.Long |
parentSpanId()
Returns the parent span ID, could be null.
|
java.lang.Iterable<? extends InMemoryReference> |
references()
Returns an immutable list of references.
|
default long |
spanId()
Returns the span ID.
|
long |
startEpochMicros()
Returns the starting epoch in milliseconds.
|
java.util.Map<java.lang.String,java.lang.Object> |
tags()
Returns an unmodifiable view of the tags.
|
default long |
traceId()
Returns the low 64 bits of trace ID.
|
default long |
traceIdHigh()
Returns the high 64 bits for 128-bit trace IDs, or
0L for 64-bit trace IDs. |
finish, finish, getBaggageItem, log, log, log, log, setBaggageItem, setOperationName, setTag, setTag, setTag
isSampled, parentSpanIdHex, spanIdHex, traceIdHex
InMemorySpanContext context()
context
in interface io.opentracing.Span
java.lang.String operationName()
java.lang.Iterable<? extends InMemoryReference> references()
default long traceId()
default long traceIdHigh()
0L
for 64-bit trace IDs.default long spanId()
@Nullable default java.lang.Long parentSpanId()
default java.lang.String nonnullParentSpanIdHex()
"null"
if the parent span ID is not present.java.util.Map<java.lang.String,java.lang.Object> tags()
@Nullable java.lang.Iterable<? extends InMemorySpanLog> logs()
long startEpochMicros()