Class Link
java.lang.Object
io.opencensus.trace.Link
- Direct Known Subclasses:
AutoValue_Link
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe relationship with the linkedSpanrelative to the currentSpan. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkfromSpanContext(SpanContext context, Link.Type type) Returns a newLink.static LinkfromSpanContext(SpanContext context, Link.Type type, Map<String, AttributeValue> attributes) Returns a newLink.abstract Map<String, AttributeValue> Returns the set of attributes.abstract SpanIdReturns theSpanId.abstract TraceIdReturns theTraceId.abstract Link.TypegetType()Returns theType.
-
Field Details
-
EMPTY_ATTRIBUTES
-
-
Constructor Details
-
Link
Link()
-
-
Method Details
-
fromSpanContext
Returns a newLink.- Parameters:
context- the context of the linkedSpan.type- the type of the relationship with the linkedSpan.- Returns:
- a new
Link. - Since:
- 0.5
-
fromSpanContext
public static Link fromSpanContext(SpanContext context, Link.Type type, Map<String, AttributeValue> attributes) Returns a newLink.- Parameters:
context- the context of the linkedSpan.type- the type of the relationship with the linkedSpan.attributes- the attributes of theLink.- Returns:
- a new
Link. - Since:
- 0.5
-
getTraceId
-
getSpanId
-
getType
-
getAttributes
Returns the set of attributes.- Returns:
- the set of attributes.
- Since:
- 0.5
-