Adds a single link to the span.
Links added after the creation will not affect the sampling decision. It is preferred span links be added at span creation.
the link to add.
Adds multiple links to the span.
Links added after the creation will not affect the sampling decision. It is preferred span links be added at span creation.
the links to add.
Returns the SpanContext object associated with this Span.
Records an exception as a span event without marking the span as failed.
The exception to record.
Optionalattributes: SpanEventAttributes
Additional attributes for the exception event.
Span represents a logical unit of work as part of a broader Trace. Examples of span might include remote procedure calls or a in-process function calls to sub-components. A Trace has a single, top-level "root" Span that in turn may have zero or more child Spans, which in turn may have children.