Package io.opencensus.proto.trace.v1
Interface Span.LinkOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Span.Link,Span.Link.Builder
- Enclosing class:
- Span
public static interface Span.LinkOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Span.AttributesgetAttributes()A set of attributes on the link.Span.AttributesOrBuildergetAttributesOrBuilder()A set of attributes on the link.com.google.protobuf.ByteStringgetSpanId()A unique identifier for the linked span.com.google.protobuf.ByteStringgetTraceId()A unique identifier of a trace that this linked span is part of.Span.TracestategetTracestate()The Tracestate associated with the link.Span.TracestateOrBuildergetTracestateOrBuilder()The Tracestate associated with the link.Span.Link.TypegetType()The relationship of the current span relative to the linked span.intgetTypeValue()The relationship of the current span relative to the linked span.booleanhasAttributes()A set of attributes on the link.booleanhasTracestate()The Tracestate associated with the link.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTraceId
com.google.protobuf.ByteString getTraceId()
A unique identifier of a trace that this linked span is part of. The ID is a 16-byte array.
bytes trace_id = 1;- Returns:
- The traceId.
-
getSpanId
com.google.protobuf.ByteString getSpanId()
A unique identifier for the linked span. The ID is an 8-byte array.
bytes span_id = 2;- Returns:
- The spanId.
-
getTypeValue
int getTypeValue()
The relationship of the current span relative to the linked span.
.opencensus.proto.trace.v1.Span.Link.Type type = 3;- Returns:
- The enum numeric value on the wire for type.
-
getType
Span.Link.Type getType()
The relationship of the current span relative to the linked span.
.opencensus.proto.trace.v1.Span.Link.Type type = 3;- Returns:
- The type.
-
hasAttributes
boolean hasAttributes()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;- Returns:
- Whether the attributes field is set.
-
getAttributes
Span.Attributes getAttributes()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;- Returns:
- The attributes.
-
getAttributesOrBuilder
Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the link.
.opencensus.proto.trace.v1.Span.Attributes attributes = 4;
-
hasTracestate
boolean hasTracestate()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;- Returns:
- Whether the tracestate field is set.
-
getTracestate
Span.Tracestate getTracestate()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;- Returns:
- The tracestate.
-
getTracestateOrBuilder
Span.TracestateOrBuilder getTracestateOrBuilder()
The Tracestate associated with the link.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 5;
-
-