@Immutable public abstract class ImmutableLink extends Object implements SpanData.Link
SpanData.Link.| Modifier and Type | Method and Description |
|---|---|
static ImmutableLink |
create(io.opentelemetry.trace.SpanContext spanContext)
Returns a new immutable
Link. |
static ImmutableLink |
create(io.opentelemetry.trace.SpanContext spanContext,
io.opentelemetry.common.Attributes attributes)
Returns a new immutable
Link. |
static ImmutableLink |
create(io.opentelemetry.trace.SpanContext spanContext,
io.opentelemetry.common.Attributes attributes,
int totalAttributeCount)
Returns a new immutable
Link. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getContext, getTotalAttributeCountpublic static ImmutableLink create(io.opentelemetry.trace.SpanContext spanContext)
Link.spanContext - the SpanContext of this Link.Event<T>public static ImmutableLink create(io.opentelemetry.trace.SpanContext spanContext, io.opentelemetry.common.Attributes attributes)
Link.spanContext - the SpanContext of this Link.attributes - the attributes of this Link.Event<T>public static ImmutableLink create(io.opentelemetry.trace.SpanContext spanContext, io.opentelemetry.common.Attributes attributes, int totalAttributeCount)
Link.spanContext - the SpanContext of this Link.attributes - the attributes of this Link.totalAttributeCount - the total number of attributed for this Link.Event<T>