Package io.opentelemetry.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 KeyValuegetAttributes(int index)attributes is a collection of attribute key/value pairs on the link.intgetAttributesCount()attributes is a collection of attribute key/value pairs on the link.List<KeyValue>getAttributesList()attributes is a collection of attribute key/value pairs on the link.KeyValueOrBuildergetAttributesOrBuilder(int index)attributes is a collection of attribute key/value pairs on the link.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()attributes is a collection of attribute key/value pairs on the link.intgetDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.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.StringgetTraceState()The trace_state associated with the link.com.google.protobuf.ByteStringgetTraceStateBytes()The trace_state 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.
-
getTraceState
String getTraceState()
The trace_state associated with the link.
string trace_state = 3;- Returns:
- The traceState.
-
getTraceStateBytes
com.google.protobuf.ByteString getTraceStateBytes()
The trace_state associated with the link.
string trace_state = 3;- Returns:
- The bytes for traceState.
-
getAttributesList
List<KeyValue> getAttributesList()
attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
-
getAttributes
KeyValue getAttributes(int index)
attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
-
getAttributesCount
int getAttributesCount()
attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
-
getAttributesOrBuilderList
List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
-
getAttributesOrBuilder
KeyValueOrBuilder getAttributesOrBuilder(int index)
attributes is a collection of attribute key/value pairs on the link. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
-
getDroppedAttributesCount
int getDroppedAttributesCount()
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 5;- Returns:
- The droppedAttributesCount.
-
-