Package io.opentelemetry.proto.trace.v1
Interface Span.EventOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Span.Event,Span.Event.Builder
- Enclosing class:
- Span
public static interface Span.EventOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(int index) attributes is a collection of attribute key/value pairs on the event.intattributes is a collection of attribute key/value pairs on the event.attributes is a collection of attribute key/value pairs on the event.getAttributesOrBuilder(int index) attributes is a collection of attribute key/value pairs on the event.List<? extends KeyValueOrBuilder>attributes is a collection of attribute key/value pairs on the event.intdropped_attributes_count is the number of dropped attributes.getName()name of the event.com.google.protobuf.ByteStringname of the event.longtime_unix_nano is the time the event occurred.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTimeUnixNano
long getTimeUnixNano()time_unix_nano is the time the event occurred.
fixed64 time_unix_nano = 1;- Returns:
- The timeUnixNano.
-
getName
String getName()name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Returns:
- The bytes for name.
-
getAttributesList
attributes is a collection of attribute key/value pairs on the event. 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 = 3; -
getAttributes
attributes is a collection of attribute key/value pairs on the event. 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 = 3; -
getAttributesCount
int getAttributesCount()attributes is a collection of attribute key/value pairs on the event. 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 = 3; -
getAttributesOrBuilderList
List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()attributes is a collection of attribute key/value pairs on the event. 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 = 3; -
getAttributesOrBuilder
attributes is a collection of attribute key/value pairs on the event. 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 = 3; -
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 = 4;- Returns:
- The droppedAttributesCount.
-