1414package opentracing ;
1515
1616/**
17- * Span represents an active, un-finished span in the opentracing system.
17+ * Represents an in-flight span in the opentracing system.
1818 *
19- * <p>Spans are created by the {@link Tracer} interface.
19+ * <p>Spans are created by the {@link Tracer#buildSpan } interface.
2020 */
2121public interface Span {
2222
@@ -31,11 +31,6 @@ public interface Span {
3131 /**
3232 * Set a key:value tag on the Span.
3333 *
34- * <p>Tag values can be of arbitrary types, however the treatment of complex types is dependent on
35- * the underlying tracing system implementation. It is expected that most tracing systems will
36- * handle primitive types like strings and numbers. If a tracing system cannot understand how to
37- * handle a particular value type, it may ignore the tag, but shall not panic.
38- *
3934 * <p>If there is a pre-existing tag set for {@code key}, it is overwritten.
4035 */
4136 // overloaded 3x to support the BasicType concern
@@ -54,10 +49,13 @@ public interface Span {
5449 */
5550 Span setBaggageItem (String key , String value );
5651
57- /** Get a Baggage item by key. */
52+ /** Get a Baggage item by key.
53+ *
54+ * Returns null if no entry found, or baggage is not supported in the current implementation.
55+ */
5856 String getBaggageItem (String key );
5957
60- /** *
58+ /**
6159 * Add a new log event to the Span, accepting an event name string and an optional structured payload argument.
6260 * If specified, the payload argument may be of any type and arbitrary size,
6361 * though implementations are not required to retain all payload arguments
@@ -76,5 +74,5 @@ public interface Span {
7674 * The timestamp is specified manually here to represent a past log event.
7775 * The timestamp in microseconds in UTC time.
7876 **/
79- Span log (long instantMicroseconds , String eventName , /* @Nullable */ Object payload );
77+ Span log (long timestampMicroseconds , String eventName , /* @Nullable */ Object payload );
8078}
0 commit comments