Class 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
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SpanObjectOrBuilder
- Enclosing class:
- 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-
Method Summary
Modifier and TypeMethodDescriptionaddAllLogs(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 segment.Remote 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 segment.getPeer()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 segment.Remote 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) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
setField
public SpanObject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
setRepeatedField
public SpanObject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
addRepeatedField
public SpanObject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
mergeFrom
public SpanObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>- Throws:
IOException
-
getSpanId
public int getSpanId()The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;- Specified by:
getSpanIdin interfaceSpanObjectOrBuilder- Returns:
- The spanId.
-
setSpanId
The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;- Parameters:
value- The spanId to set.- Returns:
- This builder for chaining.
-
clearSpanId
The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;- Returns:
- 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;- Specified by:
getParentSpanIdin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The parentSpanId to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getStartTimein interfaceSpanObjectOrBuilder- Returns:
- The startTime.
-
setStartTime
Start timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.
int64 startTime = 3;- Parameters:
value- The startTime to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getEndTimein interfaceSpanObjectOrBuilder- Returns:
- The endTime.
-
setEndTime
End timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.
int64 endTime = 4;- Parameters:
value- The endTime to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getRefsListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getRefsCountin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getRefsin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getRefsOrBuilderin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getRefsOrBuilderListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getOperationNamein interfaceSpanObjectOrBuilder- Returns:
- 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;- Specified by:
getOperationNameBytesin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The operationName to set.- Returns:
- 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;- Returns:
- 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;- Parameters:
value- The bytes for operationName to set.- Returns:
- 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;- Specified by:
getPeerin interfaceSpanObjectOrBuilder- Returns:
- 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;- Specified by:
getPeerBytesin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The peer to set.- Returns:
- 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;- Returns:
- 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;- Parameters:
value- The bytes for peer to set.- Returns:
- This builder for chaining.
-
getSpanTypeValue
public int getSpanTypeValue()Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- Specified by:
getSpanTypeValuein interfaceSpanObjectOrBuilder- Returns:
- The enum numeric value on the wire for spanType.
-
setSpanTypeValue
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- Parameters:
value- The enum numeric value on the wire for spanType to set.- Returns:
- This builder for chaining.
-
getSpanType
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- Specified by:
getSpanTypein interfaceSpanObjectOrBuilder- Returns:
- The spanType.
-
setSpanType
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- Parameters:
value- The spanType to set.- Returns:
- This builder for chaining.
-
clearSpanType
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;- Returns:
- 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;- Specified by:
getSpanLayerValuein interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The enum numeric value on the wire for spanLayer to set.- Returns:
- This builder for chaining.
-
getSpanLayer
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;- Specified by:
getSpanLayerin interfaceSpanObjectOrBuilder- Returns:
- The spanLayer.
-
setSpanLayer
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;- Parameters:
value- The spanLayer to set.- Returns:
- This builder for chaining.
-
clearSpanLayer
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;- Returns:
- 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;- Specified by:
getComponentIdin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The componentId to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getIsErrorin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The isError to set.- Returns:
- 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;- Returns:
- 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;- Specified by:
getTagsListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getTagsCountin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getTagsin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getTagsOrBuilderin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getTagsOrBuilderListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getLogsListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getLogsCountin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getLogsin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getLogsOrBuilderin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getLogsOrBuilderListin interfaceSpanObjectOrBuilder
-
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;- Specified by:
getSkipAnalysisin interfaceSpanObjectOrBuilder- Returns:
- 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;- Parameters:
value- The skipAnalysis to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-
mergeUnknownFields
public final SpanObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>
-