Interface InMemorySpan
-
- All Superinterfaces:
InMemoryTraceState
,io.opentracing.Span
public interface InMemorySpan extends io.opentracing.Span, InMemoryTraceState
A span that allows reading values at runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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, or0L
for 64-bit trace IDs.-
Methods inherited from interface io.servicetalk.opentracing.inmemory.api.InMemoryTraceState
isSampled, parentSpanIdHex, spanIdHex, traceIdHex
-
-
-
-
Method Detail
-
context
InMemorySpanContext context()
- Specified by:
context
in interfaceio.opentracing.Span
-
operationName
java.lang.String operationName()
Returns the operation name.- Returns:
- operation name
-
references
java.lang.Iterable<? extends InMemoryReference> references()
Returns an immutable list of references.- Returns:
- list of references
-
traceId
default long traceId()
Returns the low 64 bits of trace ID.- Returns:
- low 64 bits of the trace ID
-
traceIdHigh
default long traceIdHigh()
Returns the high 64 bits for 128-bit trace IDs, or0L
for 64-bit trace IDs.- Returns:
- high 64 bits of the trace ID
-
spanId
default long spanId()
Returns the span ID.- Returns:
- span ID
-
parentSpanId
@Nullable default java.lang.Long parentSpanId()
Returns the parent span ID, could be null.- Returns:
- parent span ID
-
nonnullParentSpanIdHex
default java.lang.String nonnullParentSpanIdHex()
Returns the parent span ID in hex. Returns"null"
if the parent span ID is not present.- Returns:
- parent span ID in hex
-
tags
java.util.Map<java.lang.String,java.lang.Object> tags()
Returns an unmodifiable view of the tags.- Returns:
- the tags
-
logs
@Nullable java.lang.Iterable<? extends InMemorySpanLog> logs()
Returns an unmodifiable view of logs. This may return null if the logs are not persisted.- Returns:
- the logs
-
startEpochMicros
long startEpochMicros()
Returns the starting epoch in milliseconds. May return -1 if the span is not sampled.- Returns:
- starting epoch in milliseconds
-
-