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
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 event.intgetAttributesCount()attributes is a collection of attribute key/value pairs on the event.List<KeyValue>getAttributesList()attributes is a collection of attribute key/value pairs on the event.KeyValueOrBuildergetAttributesOrBuilder(int index)attributes is a collection of attribute key/value pairs on the event.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()attributes is a collection of attribute key/value pairs on the event.intgetDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.StringgetName()name of the event.com.google.protobuf.ByteStringgetNameBytes()name of the event.longgetTimeUnixNano()time_unix_nano is the time the event occurred.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
List<KeyValue> 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
KeyValue getAttributes(int index)
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
KeyValueOrBuilder getAttributesOrBuilder(int index)
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.
-
-