Class TracesData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<TracesData,TracesData.Builder>
io.opentelemetry.proto.trace.v1.TracesData.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TracesDataOrBuilder, Cloneable
Enclosing class:
TracesData

public static final class TracesData.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TracesData,TracesData.Builder> implements TracesDataOrBuilder
 TracesData represents the traces data that can be stored in a persistent storage,
 OR can be embedded by other protocols that transfer OTLP traces data but do
 not implement the OTLP protocol.

 The main difference between this message and collector protocol is that
 in this message there will not be any "control" or "metadata" specific to
 OTLP protocol.

 When new fields are added into this message, the OTLP request MUST be updated
 as well.
 
Protobuf type opentelemetry.proto.trace.v1.TracesData
  • Method Details

    • getResourceSpansList

      public List<ResourceSpans> getResourceSpansList()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpansList in interface TracesDataOrBuilder
    • getResourceSpansCount

      public int getResourceSpansCount()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpansCount in interface TracesDataOrBuilder
    • getResourceSpans

      public ResourceSpans getResourceSpans(int index)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpans in interface TracesDataOrBuilder
    • setResourceSpans

      public TracesData.Builder setResourceSpans(int index, ResourceSpans value)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • setResourceSpans

      public TracesData.Builder setResourceSpans(int index, ResourceSpans.Builder builderForValue)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • addResourceSpans

      public TracesData.Builder addResourceSpans(ResourceSpans value)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • addResourceSpans

      public TracesData.Builder addResourceSpans(int index, ResourceSpans value)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • addResourceSpans

      public TracesData.Builder addResourceSpans(ResourceSpans.Builder builderForValue)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • addResourceSpans

      public TracesData.Builder addResourceSpans(int index, ResourceSpans.Builder builderForValue)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • addAllResourceSpans

      public TracesData.Builder addAllResourceSpans(Iterable<? extends ResourceSpans> values)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • clearResourceSpans

      public TracesData.Builder clearResourceSpans()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • removeResourceSpans

      public TracesData.Builder removeResourceSpans(int index)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];