类 SpanObject.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
org.apache.skywalking.apm.network.language.agent.v3.SpanObject.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, SpanObjectOrBuilder
封闭类:
SpanObject

public static final class SpanObject.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder> implements SpanObjectOrBuilder
 Span represents a execution unit in the system, with duration and many other attributes.
 Span could be a method, a RPC, MQ message produce or consume.
 In the practice, the span should be added when it is really necessary, to avoid payload overhead.
 We recommend to creating spans in across process(client/server of RPC/MQ) and across thread cases only.
 
Protobuf type skywalking.v3.SpanObject
  • 方法详细资料

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • clear

      public SpanObject.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • getDefaultInstanceForType

      public SpanObject getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public SpanObject build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SpanObject buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      public SpanObject.Builder clone()
      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • setField

      public SpanObject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • clearField

      public SpanObject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • clearOneof

      public SpanObject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • setRepeatedField

      public SpanObject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • addRepeatedField

      public SpanObject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • mergeFrom

      public SpanObject.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>
    • mergeFrom

      public SpanObject.Builder mergeFrom(SpanObject other)
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • mergeFrom

      public SpanObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>
      抛出:
      IOException
    • getSpanId

      public int getSpanId()
       The number id of the span. Should be unique in the whole segment.
       Starting at 0.
       
      int32 spanId = 1;
      指定者:
      getSpanId 在接口中 SpanObjectOrBuilder
      返回:
      The spanId.
    • setSpanId

      public SpanObject.Builder setSpanId(int value)
       The number id of the span. Should be unique in the whole segment.
       Starting at 0.
       
      int32 spanId = 1;
      参数:
      value - The spanId to set.
      返回:
      This builder for chaining.
    • clearSpanId

      public SpanObject.Builder clearSpanId()
       The number id of the span. Should be unique in the whole segment.
       Starting at 0.
       
      int32 spanId = 1;
      返回:
      This builder for chaining.
    • getParentSpanId

      public int getParentSpanId()
       The number id of the parent span in the whole segment.
       -1 represents no parent span.
       Also, be known as the root/first span of the segment.
       
      int32 parentSpanId = 2;
      指定者:
      getParentSpanId 在接口中 SpanObjectOrBuilder
      返回:
      The parentSpanId.
    • setParentSpanId

      public SpanObject.Builder setParentSpanId(int value)
       The number id of the parent span in the whole segment.
       -1 represents no parent span.
       Also, be known as the root/first span of the segment.
       
      int32 parentSpanId = 2;
      参数:
      value - The parentSpanId to set.
      返回:
      This builder for chaining.
    • clearParentSpanId

      public SpanObject.Builder clearParentSpanId()
       The number id of the parent span in the whole segment.
       -1 represents no parent span.
       Also, be known as the root/first span of the segment.
       
      int32 parentSpanId = 2;
      返回:
      This builder for chaining.
    • getStartTime

      public long getStartTime()
       Start timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 startTime = 3;
      指定者:
      getStartTime 在接口中 SpanObjectOrBuilder
      返回:
      The startTime.
    • setStartTime

      public SpanObject.Builder setStartTime(long value)
       Start timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 startTime = 3;
      参数:
      value - The startTime to set.
      返回:
      This builder for chaining.
    • clearStartTime

      public SpanObject.Builder clearStartTime()
       Start timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 startTime = 3;
      返回:
      This builder for chaining.
    • getEndTime

      public long getEndTime()
       End timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 endTime = 4;
      指定者:
      getEndTime 在接口中 SpanObjectOrBuilder
      返回:
      The endTime.
    • setEndTime

      public SpanObject.Builder setEndTime(long value)
       End timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 endTime = 4;
      参数:
      value - The endTime to set.
      返回:
      This builder for chaining.
    • clearEndTime

      public SpanObject.Builder clearEndTime()
       End timestamp in milliseconds of this span,
       measured between the current time and midnight, January 1, 1970 UTC.
       
      int64 endTime = 4;
      返回:
      This builder for chaining.
    • getRefsList

      public List<SegmentReference> getRefsList()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
      指定者:
      getRefsList 在接口中 SpanObjectOrBuilder
    • getRefsCount

      public int getRefsCount()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
      指定者:
      getRefsCount 在接口中 SpanObjectOrBuilder
    • getRefs

      public SegmentReference getRefs(int index)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
      指定者:
      getRefs 在接口中 SpanObjectOrBuilder
    • setRefs

      public SpanObject.Builder setRefs(int index, SegmentReference value)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • setRefs

      public SpanObject.Builder setRefs(int index, SegmentReference.Builder builderForValue)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addRefs

      public SpanObject.Builder addRefs(SegmentReference value)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addRefs

      public SpanObject.Builder addRefs(int index, SegmentReference value)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addRefs

      public SpanObject.Builder addRefs(SegmentReference.Builder builderForValue)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addRefs

      public SpanObject.Builder addRefs(int index, SegmentReference.Builder builderForValue)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addAllRefs

      public SpanObject.Builder addAllRefs(Iterable<? extends SegmentReference> values)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • clearRefs

      public SpanObject.Builder clearRefs()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • removeRefs

      public SpanObject.Builder removeRefs(int index)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • getRefsBuilder

      public SegmentReference.Builder getRefsBuilder(int index)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • getRefsOrBuilder

      public SegmentReferenceOrBuilder getRefsOrBuilder(int index)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
      指定者:
      getRefsOrBuilder 在接口中 SpanObjectOrBuilder
    • getRefsOrBuilderList

      public List<? extends SegmentReferenceOrBuilder> getRefsOrBuilderList()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
      指定者:
      getRefsOrBuilderList 在接口中 SpanObjectOrBuilder
    • addRefsBuilder

      public SegmentReference.Builder addRefsBuilder()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • addRefsBuilder

      public SegmentReference.Builder addRefsBuilder(int index)
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • getRefsBuilderList

      public List<SegmentReference.Builder> getRefsBuilderList()
       <Optional>
       In the across thread and across process, these references targeting the parent segments.
       The references usually have only one element, but in batch consumer case, such as in MQ or async batch process, it could be multiple.
       
      repeated .skywalking.v3.SegmentReference refs = 5;
    • getOperationName

      public String getOperationName()
       A logic name represents this span.
       We don't recommend to include the parameter, such as HTTP request parameters, as a part of the operation, especially this is the name of the entry span.
       All statistic for the endpoints are aggregated base on this name. Those parameters should be added in the tags if necessary.
       If in some cases, it have to be a part of the operation name,
       users should use the Group Parameterized Endpoints capability at the backend to get the meaningful metrics.
       Read https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/endpoint-grouping-rules.md
       
      string operationName = 6;
      指定者:
      getOperationName 在接口中 SpanObjectOrBuilder
      返回:
      The operationName.
    • getOperationNameBytes

      public com.google.protobuf.ByteString getOperationNameBytes()
       A logic name represents this span.
       We don't recommend to include the parameter, such as HTTP request parameters, as a part of the operation, especially this is the name of the entry span.
       All statistic for the endpoints are aggregated base on this name. Those parameters should be added in the tags if necessary.
       If in some cases, it have to be a part of the operation name,
       users should use the Group Parameterized Endpoints capability at the backend to get the meaningful metrics.
       Read https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/endpoint-grouping-rules.md
       
      string operationName = 6;
      指定者:
      getOperationNameBytes 在接口中 SpanObjectOrBuilder
      返回:
      The bytes for operationName.
    • setOperationName

      public SpanObject.Builder setOperationName(String value)
       A logic name represents this span.
       We don't recommend to include the parameter, such as HTTP request parameters, as a part of the operation, especially this is the name of the entry span.
       All statistic for the endpoints are aggregated base on this name. Those parameters should be added in the tags if necessary.
       If in some cases, it have to be a part of the operation name,
       users should use the Group Parameterized Endpoints capability at the backend to get the meaningful metrics.
       Read https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/endpoint-grouping-rules.md
       
      string operationName = 6;
      参数:
      value - The operationName to set.
      返回:
      This builder for chaining.
    • clearOperationName

      public SpanObject.Builder clearOperationName()
       A logic name represents this span.
       We don't recommend to include the parameter, such as HTTP request parameters, as a part of the operation, especially this is the name of the entry span.
       All statistic for the endpoints are aggregated base on this name. Those parameters should be added in the tags if necessary.
       If in some cases, it have to be a part of the operation name,
       users should use the Group Parameterized Endpoints capability at the backend to get the meaningful metrics.
       Read https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/endpoint-grouping-rules.md
       
      string operationName = 6;
      返回:
      This builder for chaining.
    • setOperationNameBytes

      public SpanObject.Builder setOperationNameBytes(com.google.protobuf.ByteString value)
       A logic name represents this span.
       We don't recommend to include the parameter, such as HTTP request parameters, as a part of the operation, especially this is the name of the entry span.
       All statistic for the endpoints are aggregated base on this name. Those parameters should be added in the tags if necessary.
       If in some cases, it have to be a part of the operation name,
       users should use the Group Parameterized Endpoints capability at the backend to get the meaningful metrics.
       Read https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/endpoint-grouping-rules.md
       
      string operationName = 6;
      参数:
      value - The bytes for operationName to set.
      返回:
      This builder for chaining.
    • getPeer

      public String getPeer()
       Remote address of the peer in RPC/MQ case.
       This is required when spanType = Exit, as it is a part of the SkyWalking STAM(Streaming Topology Analysis Method).
       For more details, read https://wu-sheng.github.io/STAM/
       
      string peer = 7;
      指定者:
      getPeer 在接口中 SpanObjectOrBuilder
      返回:
      The peer.
    • getPeerBytes

      public com.google.protobuf.ByteString getPeerBytes()
       Remote address of the peer in RPC/MQ case.
       This is required when spanType = Exit, as it is a part of the SkyWalking STAM(Streaming Topology Analysis Method).
       For more details, read https://wu-sheng.github.io/STAM/
       
      string peer = 7;
      指定者:
      getPeerBytes 在接口中 SpanObjectOrBuilder
      返回:
      The bytes for peer.
    • setPeer

      public SpanObject.Builder setPeer(String value)
       Remote address of the peer in RPC/MQ case.
       This is required when spanType = Exit, as it is a part of the SkyWalking STAM(Streaming Topology Analysis Method).
       For more details, read https://wu-sheng.github.io/STAM/
       
      string peer = 7;
      参数:
      value - The peer to set.
      返回:
      This builder for chaining.
    • clearPeer

      public SpanObject.Builder clearPeer()
       Remote address of the peer in RPC/MQ case.
       This is required when spanType = Exit, as it is a part of the SkyWalking STAM(Streaming Topology Analysis Method).
       For more details, read https://wu-sheng.github.io/STAM/
       
      string peer = 7;
      返回:
      This builder for chaining.
    • setPeerBytes

      public SpanObject.Builder setPeerBytes(com.google.protobuf.ByteString value)
       Remote address of the peer in RPC/MQ case.
       This is required when spanType = Exit, as it is a part of the SkyWalking STAM(Streaming Topology Analysis Method).
       For more details, read https://wu-sheng.github.io/STAM/
       
      string peer = 7;
      参数:
      value - The bytes for peer to set.
      返回:
      This builder for chaining.
    • getSpanTypeValue

      public int getSpanTypeValue()
       Span type represents the role in the RPC context.
       
      .skywalking.v3.SpanType spanType = 8;
      指定者:
      getSpanTypeValue 在接口中 SpanObjectOrBuilder
      返回:
      The enum numeric value on the wire for spanType.
    • setSpanTypeValue

      public SpanObject.Builder setSpanTypeValue(int value)
       Span type represents the role in the RPC context.
       
      .skywalking.v3.SpanType spanType = 8;
      参数:
      value - The enum numeric value on the wire for spanType to set.
      返回:
      This builder for chaining.
    • getSpanType

      public SpanType getSpanType()
       Span type represents the role in the RPC context.
       
      .skywalking.v3.SpanType spanType = 8;
      指定者:
      getSpanType 在接口中 SpanObjectOrBuilder
      返回:
      The spanType.
    • setSpanType

      public SpanObject.Builder setSpanType(SpanType value)
       Span type represents the role in the RPC context.
       
      .skywalking.v3.SpanType spanType = 8;
      参数:
      value - The spanType to set.
      返回:
      This builder for chaining.
    • clearSpanType

      public SpanObject.Builder clearSpanType()
       Span type represents the role in the RPC context.
       
      .skywalking.v3.SpanType spanType = 8;
      返回:
      This builder for chaining.
    • getSpanLayerValue

      public int getSpanLayerValue()
       Span layer represent the component tech stack, related to the network tech.
       
      .skywalking.v3.SpanLayer spanLayer = 9;
      指定者:
      getSpanLayerValue 在接口中 SpanObjectOrBuilder
      返回:
      The enum numeric value on the wire for spanLayer.
    • setSpanLayerValue

      public SpanObject.Builder setSpanLayerValue(int value)
       Span layer represent the component tech stack, related to the network tech.
       
      .skywalking.v3.SpanLayer spanLayer = 9;
      参数:
      value - The enum numeric value on the wire for spanLayer to set.
      返回:
      This builder for chaining.
    • getSpanLayer

      public SpanLayer getSpanLayer()
       Span layer represent the component tech stack, related to the network tech.
       
      .skywalking.v3.SpanLayer spanLayer = 9;
      指定者:
      getSpanLayer 在接口中 SpanObjectOrBuilder
      返回:
      The spanLayer.
    • setSpanLayer

      public SpanObject.Builder setSpanLayer(SpanLayer value)
       Span layer represent the component tech stack, related to the network tech.
       
      .skywalking.v3.SpanLayer spanLayer = 9;
      参数:
      value - The spanLayer to set.
      返回:
      This builder for chaining.
    • clearSpanLayer

      public SpanObject.Builder clearSpanLayer()
       Span layer represent the component tech stack, related to the network tech.
       
      .skywalking.v3.SpanLayer spanLayer = 9;
      返回:
      This builder for chaining.
    • getComponentId

      public int getComponentId()
       Component id is a predefinited number id in the SkyWalking.
       It represents the framework, tech stack used by this tracked span, such as Spring.
       All IDs are defined in the https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/component-libraries.yml
       Send a pull request if you want to add languages, components or mapping defintions,
       all public components could be accepted.
       Follow this doc for more details, https://github.com/apache/skywalking/blob/master/docs/en/guides/Component-library-settings.md
       
      int32 componentId = 10;
      指定者:
      getComponentId 在接口中 SpanObjectOrBuilder
      返回:
      The componentId.
    • setComponentId

      public SpanObject.Builder setComponentId(int value)
       Component id is a predefinited number id in the SkyWalking.
       It represents the framework, tech stack used by this tracked span, such as Spring.
       All IDs are defined in the https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/component-libraries.yml
       Send a pull request if you want to add languages, components or mapping defintions,
       all public components could be accepted.
       Follow this doc for more details, https://github.com/apache/skywalking/blob/master/docs/en/guides/Component-library-settings.md
       
      int32 componentId = 10;
      参数:
      value - The componentId to set.
      返回:
      This builder for chaining.
    • clearComponentId

      public SpanObject.Builder clearComponentId()
       Component id is a predefinited number id in the SkyWalking.
       It represents the framework, tech stack used by this tracked span, such as Spring.
       All IDs are defined in the https://github.com/apache/skywalking/blob/master/oap-server/server-bootstrap/src/main/resources/component-libraries.yml
       Send a pull request if you want to add languages, components or mapping defintions,
       all public components could be accepted.
       Follow this doc for more details, https://github.com/apache/skywalking/blob/master/docs/en/guides/Component-library-settings.md
       
      int32 componentId = 10;
      返回:
      This builder for chaining.
    • getIsError

      public boolean getIsError()
       The status of the span. False means the tracked execution ends in the unexpected status.
       This affects the successful rate statistic in the backend.
       Exception or error code happened in the tracked process doesn't mean isError == true, the implementations of agent plugin and tracing SDK make the final decision.
       
      bool isError = 11;
      指定者:
      getIsError 在接口中 SpanObjectOrBuilder
      返回:
      The isError.
    • setIsError

      public SpanObject.Builder setIsError(boolean value)
       The status of the span. False means the tracked execution ends in the unexpected status.
       This affects the successful rate statistic in the backend.
       Exception or error code happened in the tracked process doesn't mean isError == true, the implementations of agent plugin and tracing SDK make the final decision.
       
      bool isError = 11;
      参数:
      value - The isError to set.
      返回:
      This builder for chaining.
    • clearIsError

      public SpanObject.Builder clearIsError()
       The status of the span. False means the tracked execution ends in the unexpected status.
       This affects the successful rate statistic in the backend.
       Exception or error code happened in the tracked process doesn't mean isError == true, the implementations of agent plugin and tracing SDK make the final decision.
       
      bool isError = 11;
      返回:
      This builder for chaining.
    • getTagsList

      public List<KeyStringValuePair> getTagsList()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
      指定者:
      getTagsList 在接口中 SpanObjectOrBuilder
    • getTagsCount

      public int getTagsCount()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
      指定者:
      getTagsCount 在接口中 SpanObjectOrBuilder
    • getTags

      public KeyStringValuePair getTags(int index)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
      指定者:
      getTags 在接口中 SpanObjectOrBuilder
    • setTags

      public SpanObject.Builder setTags(int index, KeyStringValuePair value)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • setTags

      public SpanObject.Builder setTags(int index, KeyStringValuePair.Builder builderForValue)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addTags

      public SpanObject.Builder addTags(KeyStringValuePair value)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addTags

      public SpanObject.Builder addTags(int index, KeyStringValuePair value)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addTags

      public SpanObject.Builder addTags(KeyStringValuePair.Builder builderForValue)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addTags

      public SpanObject.Builder addTags(int index, KeyStringValuePair.Builder builderForValue)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addAllTags

      public SpanObject.Builder addAllTags(Iterable<? extends KeyStringValuePair> values)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • clearTags

      public SpanObject.Builder clearTags()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • removeTags

      public SpanObject.Builder removeTags(int index)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • getTagsBuilder

      public KeyStringValuePair.Builder getTagsBuilder(int index)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • getTagsOrBuilder

      public KeyStringValuePairOrBuilder getTagsOrBuilder(int index)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
      指定者:
      getTagsOrBuilder 在接口中 SpanObjectOrBuilder
    • getTagsOrBuilderList

      public List<? extends KeyStringValuePairOrBuilder> getTagsOrBuilderList()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
      指定者:
      getTagsOrBuilderList 在接口中 SpanObjectOrBuilder
    • addTagsBuilder

      public KeyStringValuePair.Builder addTagsBuilder()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • addTagsBuilder

      public KeyStringValuePair.Builder addTagsBuilder(int index)
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • getTagsBuilderList

      public List<KeyStringValuePair.Builder> getTagsBuilderList()
       String key, String value pair.
       Tags provides more informance, includes parameters.
       In the OAP backend analysis, some special tag or tag combination could provide other advanced features.
       https://github.com/apache/skywalking/blob/master/docs/en/guides/Java-Plugin-Development-Guide.md#special-span-tags
       
      repeated .skywalking.v3.KeyStringValuePair tags = 12;
    • getLogsList

      public List<Log> getLogsList()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
      指定者:
      getLogsList 在接口中 SpanObjectOrBuilder
    • getLogsCount

      public int getLogsCount()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
      指定者:
      getLogsCount 在接口中 SpanObjectOrBuilder
    • getLogs

      public Log getLogs(int index)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
      指定者:
      getLogs 在接口中 SpanObjectOrBuilder
    • setLogs

      public SpanObject.Builder setLogs(int index, Log value)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • setLogs

      public SpanObject.Builder setLogs(int index, Log.Builder builderForValue)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addLogs

      public SpanObject.Builder addLogs(Log value)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addLogs

      public SpanObject.Builder addLogs(int index, Log value)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addLogs

      public SpanObject.Builder addLogs(Log.Builder builderForValue)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addLogs

      public SpanObject.Builder addLogs(int index, Log.Builder builderForValue)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addAllLogs

      public SpanObject.Builder addAllLogs(Iterable<? extends Log> values)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • clearLogs

      public SpanObject.Builder clearLogs()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • removeLogs

      public SpanObject.Builder removeLogs(int index)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • getLogsBuilder

      public Log.Builder getLogsBuilder(int index)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • getLogsOrBuilder

      public LogOrBuilder getLogsOrBuilder(int index)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
      指定者:
      getLogsOrBuilder 在接口中 SpanObjectOrBuilder
    • getLogsOrBuilderList

      public List<? extends LogOrBuilder> getLogsOrBuilderList()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
      指定者:
      getLogsOrBuilderList 在接口中 SpanObjectOrBuilder
    • addLogsBuilder

      public Log.Builder addLogsBuilder()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • addLogsBuilder

      public Log.Builder addLogsBuilder(int index)
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • getLogsBuilderList

      public List<Log.Builder> getLogsBuilderList()
       String key, String value pair with an accurate timestamp.
       Logging some events happening in the context of the span duration.
       
      repeated .skywalking.v3.Log logs = 13;
    • getSkipAnalysis

      public boolean getSkipAnalysis()
       Force the backend don't do analysis, if the value is TRUE.
       The backend has its own configurations to follow or override this.
       Use this mostly because the agent/SDK could know more context of the service role.
       
      bool skipAnalysis = 14;
      指定者:
      getSkipAnalysis 在接口中 SpanObjectOrBuilder
      返回:
      The skipAnalysis.
    • setSkipAnalysis

      public SpanObject.Builder setSkipAnalysis(boolean value)
       Force the backend don't do analysis, if the value is TRUE.
       The backend has its own configurations to follow or override this.
       Use this mostly because the agent/SDK could know more context of the service role.
       
      bool skipAnalysis = 14;
      参数:
      value - The skipAnalysis to set.
      返回:
      This builder for chaining.
    • clearSkipAnalysis

      public SpanObject.Builder clearSkipAnalysis()
       Force the backend don't do analysis, if the value is TRUE.
       The backend has its own configurations to follow or override this.
       Use this mostly because the agent/SDK could know more context of the service role.
       
      bool skipAnalysis = 14;
      返回:
      This builder for chaining.
    • setUnknownFields

      public final SpanObject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
    • mergeUnknownFields

      public final SpanObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>