- build
Returns a Span built from the parameters set via the various with*(...) methods
on this builder inst
- withParentSpanId
Sets the ID of the span that spawned this span instance (the logical "parent" of
this span), or pass
- withSampleable
Set this to true if this span is sampleable and should be output to the
logging/span collection syst
- withUserId
Sets the ID of the user logically associated with this span, or pass in null if
no such user ID exis
- withTraceId
Sets the The ID associated with the overall distributed trace - a.k.a. the trace
tree ID. All spans
- withDurationNanos
Sets the duration of the span in nanoseconds, or null if this Span should not
be considered Span#is
- withSpanId
Sets the ID for this span of work in the distributed trace. Don't confuse this
with #withTraceId(Str
- withSpanStartTimeEpochMicros
Sets the start timestamp in microseconds since the epoch for this span (*not*
milliseconds), or pas
- withSpanStartTimeNanos
TLDR; Passing in null (or not calling this method at all) is always a safe
option - when in doubt le
- withSpanName
Sets the human-readable name for this span. This should never be null - if you
set this to null and
- withSpanPurpose
Sets the SpanPurpose for this span. See the javadocs on that class for details
on what each enum opt
- withTag
Sets the value of a tag for the respective key. This will replace an existing
tag value for the resp