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 InMemorySpanContextcontext()java.lang.Iterable<? extends InMemorySpanLog>logs()Returns an unmodifiable view of logs.default java.lang.StringnonnullParentSpanIdHex()Returns the parent span ID in hex.java.lang.StringoperationName()Returns the operation name.default java.lang.LongparentSpanId()Returns the parent span ID, could be null.java.lang.Iterable<? extends InMemoryReference>references()Returns an immutable list of references.default longspanId()Returns the span ID.longstartEpochMicros()Returns the starting epoch in milliseconds.java.util.Map<java.lang.String,java.lang.Object>tags()Returns an unmodifiable view of the tags.default longtraceId()Returns the low 64 bits of trace ID.default longtraceIdHigh()Returns the high 64 bits for 128-bit trace IDs, or0Lfor 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:
contextin 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, or0Lfor 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
-
-