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 Type
    Method
    Description
    getAttributes(int index)
    attributes is a collection of attribute key/value pairs on the event.
    int
    attributes is a collection of attribute key/value pairs on the event.
    attributes is a collection of attribute key/value pairs on the event.
    attributes is a collection of attribute key/value pairs on the event.
    attributes is a collection of attribute key/value pairs on the event.
    int
    dropped_attributes_count is the number of dropped attributes.
    name of the event.
    com.google.protobuf.ByteString
    name of the event.
    long
    time_unix_nano is the time the event occurred.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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

      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).
      
       The attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      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).
      
       The attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      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).
      
       The attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      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).
      
       The attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      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).
      
       The attribute values SHOULD NOT contain empty values.
       The attribute values SHOULD NOT contain bytes values.
       The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
       double values.
       The attribute values SHOULD NOT contain kvlist values.
       The behavior of software that receives attributes containing such values can be unpredictable.
       These restrictions can change in a minor release.
       The restrictions take origin from the OpenTelemetry specification:
       https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
       
      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.