Package io.opentelemetry.proto.trace.v1
Interface Span.EventOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Span.Event,Span.Event.Builder
- Enclosing class:
- Span
public static interface Span.EventOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributes(int index) A collection of attribute key/value pairs on the event.intA collection of attribute key/value pairs on the event.A collection of attribute key/value pairs on the event.intThe number of dropped attributes.getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.longThe time the event occurred.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getTimeUnixNano
long getTimeUnixNano()The time the event occurred.
fixed64 time_unix_nano = 1 [json_name = "timeUnixNano"];- Returns:
- The timeUnixNano.
-
getName
String getName()The name of the event. This field is semantically required to be set to non-empty string.
string name = 2 [json_name = "name"];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the event. This field is semantically required to be set to non-empty string.
string name = 2 [json_name = "name"];- Returns:
- The bytes for name.
-
getAttributesList
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). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getAttributes
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). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getAttributesCount
int getAttributesCount()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). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3 [json_name = "attributes"]; -
getDroppedAttributesCount
int getDroppedAttributesCount()The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4 [json_name = "droppedAttributesCount"];- Returns:
- The droppedAttributesCount.
-