@Immutable public abstract static class SpanData.Link extends Object implements io.opentelemetry.trace.Link
Link
.Modifier and Type | Method and Description |
---|---|
static SpanData.Link |
create(io.opentelemetry.trace.SpanContext spanContext)
Returns a new immutable
Link . |
static SpanData.Link |
create(io.opentelemetry.trace.SpanContext spanContext,
io.opentelemetry.common.Attributes attributes)
Returns a new immutable
Link . |
static SpanData.Link |
create(io.opentelemetry.trace.SpanContext spanContext,
io.opentelemetry.common.Attributes attributes,
int totalAttributeCount)
Returns a new immutable
Link . |
abstract int |
getTotalAttributeCount()
The total number of attributes that were recorded on this Link.
|
public static SpanData.Link create(io.opentelemetry.trace.SpanContext spanContext)
Link
.spanContext
- the SpanContext
of this Link
.Event<T>
public static SpanData.Link 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 SpanData.Link 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>
public abstract int getTotalAttributeCount()
TraceConfig.getMaxNumberOfAttributesPerLink()