public interface Span extends BaseSpan<Span>
BaseSpan.
Spans are created by the Tracer.SpanBuilder.startManual() method; see ActiveSpan for
a BaseSpan extension designed for automatic in-process propagation.
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Sets the end timestamp to now and records the span.
|
void |
finish(long finishMicros)
Sets an explicit end timestamp and records the span.
|
context, getBaggageItem, log, log, log, log, log, log, setBaggageItem, setOperationName, setTag, setTag, setTagvoid finish()
With the exception of calls to BaseSpan.context(), this should be the last call made to the span instance.
Future calls to finish() are defined as noops, and future calls to methods other than BaseSpan.context()
lead to undefined behavior.
BaseSpan.context()void finish(long finishMicros)
With the exception of calls to Span.context(), this should be the last call made to the span instance, and to do otherwise leads to undefined behavior.
finishMicros - an explicit finish time, in microseconds since the epochBaseSpan.context()Copyright © 2016–2017 OpenTracing. All rights reserved.