@Immutable public final class Link extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Link.Type
The relationship with the linked
Span relative to the current Span. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Link |
fromSpanContext(SpanContext context,
Link.Type type)
Returns a new
Link. |
SpanId |
getSpanId()
Returns the
SpanId. |
TraceId |
getTraceId()
Returns the
TraceId. |
Link.Type |
getType()
Returns the
Type. |
int |
hashCode() |
String |
toString() |
public static Link fromSpanContext(SpanContext context, Link.Type type)
Link.context - the context of the linked Span.type - the type of the relationship with the linked Span.Link.public TraceId getTraceId()
TraceId.TraceId.public SpanId getSpanId()
SpanId.SpanIdpublic Link.Type getType()
Type.Type.