Interface SpanLinksBuilder
public interface SpanLinksBuilder
A builder that exposes methods for adding links to a span.
-
Method Summary
-
Method Details
-
addLink
Adds a link to the newly createdSpan. InvalidSpanContexts will be skipped.- Parameters:
spanContext- the context of the linkedSpan.- Returns:
- this.
- See Also:
-
SpanBuilder.addLink(SpanContext)
-
addLink
@CanIgnoreReturnValue SpanLinksBuilder addLink(io.opentelemetry.api.trace.SpanContext spanContext, io.opentelemetry.api.common.Attributes attributes) Adds a link to the newly createdSpan. InvalidSpanContexts will be skipped.- Parameters:
spanContext- the context of the linkedSpan.attributes- the attributes of theLink.- Returns:
- this.
- See Also:
-
SpanBuilder.addLink(SpanContext)
-