Interface SpanLinksBuilder
-
public interface SpanLinksBuilderA builder that exposes methods for adding links to a span.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpanLinksBuilderaddLink(io.opentelemetry.api.trace.SpanContext spanContext)Adds a link to the newly createdSpan.SpanLinksBuilderaddLink(io.opentelemetry.api.trace.SpanContext spanContext, io.opentelemetry.api.common.Attributes attributes)Adds a link to the newly createdSpan.
-
-
-
Method Detail
-
addLink
SpanLinksBuilder addLink(io.opentelemetry.api.trace.SpanContext spanContext)
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
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)
-
-