Interface InMemorySpan
- All Superinterfaces:
io.opentracing.Span
public interface InMemorySpan
extends io.opentracing.Span
A span that allows reading values at runtime.
-
Method Summary
Modifier and TypeMethodDescriptioncontext()
Iterable<? extends InMemorySpanLog>
logs()
Returns an unmodifiable view of logs.Returns the operation name.Iterable<? extends InMemoryReference>
Returns an immutable list of references.long
Returns the starting epoch in milliseconds.tags()
Returns an unmodifiable view of the tags.Methods inherited from interface io.opentracing.Span
finish, finish, getBaggageItem, log, log, log, log, setBaggageItem, setOperationName, setTag, setTag, setTag, setTag
-
Method Details
-
context
InMemorySpanContext context()- Specified by:
context
in interfaceio.opentracing.Span
-
operationName
String operationName()Returns the operation name.- Returns:
- operation name
-
references
Iterable<? extends InMemoryReference> references()Returns an immutable list of references.- Returns:
- list of references
-
tags
Returns an unmodifiable view of the tags.- Returns:
- the tags
-
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
-