类 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-
方法概要
修饰符和类型方法说明addAllLogs(Iterable<? extends Log> values) String key, String value pair with an accurate timestamp.addAllRefs(Iterable<? extends SegmentReference> values) <Optional> In the across thread and across process, these references targeting the parent segments.addAllTags(Iterable<? extends KeyStringValuePair> values) String key, String value pair.String key, String value pair with an accurate timestamp.addLogs(int index, Log.Builder builderForValue) String key, String value pair with an accurate timestamp.String key, String value pair with an accurate timestamp.addLogs(Log.Builder builderForValue) String key, String value pair with an accurate timestamp.String key, String value pair with an accurate timestamp.addLogsBuilder(int index) String key, String value pair with an accurate timestamp.addRefs(int index, SegmentReference value) <Optional> In the across thread and across process, these references targeting the parent segments.addRefs(int index, SegmentReference.Builder builderForValue) <Optional> In the across thread and across process, these references targeting the parent segments.addRefs(SegmentReference value) <Optional> In the across thread and across process, these references targeting the parent segments.addRefs(SegmentReference.Builder builderForValue) <Optional> In the across thread and across process, these references targeting the parent segments.<Optional> In the across thread and across process, these references targeting the parent segments.addRefsBuilder(int index) <Optional> In the across thread and across process, these references targeting the parent segments.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTags(int index, KeyStringValuePair value) String key, String value pair.addTags(int index, KeyStringValuePair.Builder builderForValue) String key, String value pair.addTags(KeyStringValuePair value) String key, String value pair.addTags(KeyStringValuePair.Builder builderForValue) String key, String value pair.String key, String value pair.addTagsBuilder(int index) String key, String value pair.build()clear()Component id is a predefinited number id in the SkyWalking.End timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The status of the span.String key, String value pair with an accurate timestamp.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A logic name represents this span.The number id of the parent span in the whole segmentRemote address of the peer in RPC/MQ case.<Optional> In the across thread and across process, these references targeting the parent segments.Force the backend don't do analysis, if the value is TRUE.The number id of the span.Span layer represent the component tech stack, related to the network tech.Span type represents the role in the RPC context.Start timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.String key, String value pair.clone()intComponent id is a predefinited number id in the SkyWalking.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongEnd timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.booleanThe status of the span.getLogs(int index) String key, String value pair with an accurate timestamp.getLogsBuilder(int index) String key, String value pair with an accurate timestamp.String key, String value pair with an accurate timestamp.intString key, String value pair with an accurate timestamp.String key, String value pair with an accurate timestamp.getLogsOrBuilder(int index) String key, String value pair with an accurate timestamp.List<? extends LogOrBuilder>String key, String value pair with an accurate timestamp.A logic name represents this span.com.google.protobuf.ByteStringA logic name represents this span.intThe number id of the parent span in the whole segmentgetPeer()Remote address of the peer in RPC/MQ case.com.google.protobuf.ByteStringRemote address of the peer in RPC/MQ case.getRefs(int index) <Optional> In the across thread and across process, these references targeting the parent segments.getRefsBuilder(int index) <Optional> In the across thread and across process, these references targeting the parent segments.<Optional> In the across thread and across process, these references targeting the parent segments.int<Optional> In the across thread and across process, these references targeting the parent segments.<Optional> In the across thread and across process, these references targeting the parent segments.getRefsOrBuilder(int index) <Optional> In the across thread and across process, these references targeting the parent segments.List<? extends SegmentReferenceOrBuilder><Optional> In the across thread and across process, these references targeting the parent segments.booleanForce the backend don't do analysis, if the value is TRUE.intThe number id of the span.Span layer represent the component tech stack, related to the network tech.intSpan layer represent the component tech stack, related to the network tech.Span type represents the role in the RPC context.intSpan type represents the role in the RPC context.longStart timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.getTags(int index) String key, String value pair.getTagsBuilder(int index) String key, String value pair.String key, String value pair.intString key, String value pair.String key, String value pair.getTagsOrBuilder(int index) String key, String value pair.List<? extends KeyStringValuePairOrBuilder>String key, String value pair.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SpanObject other) final SpanObject.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeLogs(int index) String key, String value pair with an accurate timestamp.removeRefs(int index) <Optional> In the across thread and across process, these references targeting the parent segments.removeTags(int index) String key, String value pair.setComponentId(int value) Component id is a predefinited number id in the SkyWalking.setEndTime(long value) End timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.setIsError(boolean value) The status of the span.String key, String value pair with an accurate timestamp.setLogs(int index, Log.Builder builderForValue) String key, String value pair with an accurate timestamp.setOperationName(String value) A logic name represents this span.setOperationNameBytes(com.google.protobuf.ByteString value) A logic name represents this span.setParentSpanId(int value) The number id of the parent span in the whole segmentRemote address of the peer in RPC/MQ case.setPeerBytes(com.google.protobuf.ByteString value) Remote address of the peer in RPC/MQ case.setRefs(int index, SegmentReference value) <Optional> In the across thread and across process, these references targeting the parent segments.setRefs(int index, SegmentReference.Builder builderForValue) <Optional> In the across thread and across process, these references targeting the parent segments.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSkipAnalysis(boolean value) Force the backend don't do analysis, if the value is TRUE.setSpanId(int value) The number id of the span.setSpanLayer(SpanLayer value) Span layer represent the component tech stack, related to the network tech.setSpanLayerValue(int value) Span layer represent the component tech stack, related to the network tech.setSpanType(SpanType value) Span type represents the role in the RPC context.setSpanTypeValue(int value) Span type represents the role in the RPC context.setStartTime(long value) Start timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.setTags(int index, KeyStringValuePair value) String key, String value pair.setTags(int index, KeyStringValuePair.Builder builderForValue) String key, String value pair.final SpanObject.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
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
- 指定者:
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
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.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
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
clearOneof
- 指定者:
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
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>
-
mergeFrom
-
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
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
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
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
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
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
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
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
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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
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
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
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
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
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
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
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
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
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
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- 指定者:
getSpanType在接口中SpanObjectOrBuilder- 返回:
- The spanType.
-
setSpanType
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- 参数:
value- The spanType to set.- 返回:
- This builder for chaining.
-
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
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
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;- 指定者:
getSpanLayer在接口中SpanObjectOrBuilder- 返回:
- The spanLayer.
-
setSpanLayer
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 指定者:
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>
-