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| Modifier and Type | Method and Description |
|---|---|
SpanObject.Builder |
addAllLogs(Iterable<? extends Log> values)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
addAllRefs(Iterable<? extends SegmentReference> values)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
addAllTags(Iterable<? extends KeyStringValuePair> values)
String key, String value pair.
|
SpanObject.Builder |
addLogs(int index,
Log.Builder builderForValue)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
addLogs(int index,
Log value)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
addLogs(Log.Builder builderForValue)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
addLogs(Log value)
String key, String value pair with an accurate timestamp.
|
Log.Builder |
addLogsBuilder()
String key, String value pair with an accurate timestamp.
|
Log.Builder |
addLogsBuilder(int index)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
addRefs(int index,
SegmentReference.Builder builderForValue)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
addRefs(int index,
SegmentReference value)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
addRefs(SegmentReference.Builder builderForValue)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
addRefs(SegmentReference value)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SegmentReference.Builder |
addRefsBuilder()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SegmentReference.Builder |
addRefsBuilder(int index)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpanObject.Builder |
addTags(int index,
KeyStringValuePair.Builder builderForValue)
String key, String value pair.
|
SpanObject.Builder |
addTags(int index,
KeyStringValuePair value)
String key, String value pair.
|
SpanObject.Builder |
addTags(KeyStringValuePair.Builder builderForValue)
String key, String value pair.
|
SpanObject.Builder |
addTags(KeyStringValuePair value)
String key, String value pair.
|
KeyStringValuePair.Builder |
addTagsBuilder()
String key, String value pair.
|
KeyStringValuePair.Builder |
addTagsBuilder(int index)
String key, String value pair.
|
SpanObject |
build() |
SpanObject |
buildPartial() |
SpanObject.Builder |
clear() |
SpanObject.Builder |
clearComponentId()
Component id is a predefinited number id in the SkyWalking.
|
SpanObject.Builder |
clearEndTime()
End timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
SpanObject.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpanObject.Builder |
clearIsError()
The status of the span.
|
SpanObject.Builder |
clearLogs()
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpanObject.Builder |
clearOperationName()
A logic name represents this span.
|
SpanObject.Builder |
clearParentSpanId()
The number id of the parent span in the whole segment.
|
SpanObject.Builder |
clearPeer()
Remote address of the peer in RPC/MQ case.
|
SpanObject.Builder |
clearRefs()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
clearSkipAnalysis()
Force the backend don't do analysis, if the value is TRUE.
|
SpanObject.Builder |
clearSpanId()
The number id of the span.
|
SpanObject.Builder |
clearSpanLayer()
Span layer represent the component tech stack, related to the network tech.
|
SpanObject.Builder |
clearSpanType()
Span type represents the role in the RPC context.
|
SpanObject.Builder |
clearStartTime()
Start timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
SpanObject.Builder |
clearTags()
String key, String value pair.
|
SpanObject.Builder |
clone() |
int |
getComponentId()
Component id is a predefinited number id in the SkyWalking.
|
SpanObject |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getEndTime()
End timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
boolean |
getIsError()
The status of the span.
|
Log |
getLogs(int index)
String key, String value pair with an accurate timestamp.
|
Log.Builder |
getLogsBuilder(int index)
String key, String value pair with an accurate timestamp.
|
List<Log.Builder> |
getLogsBuilderList()
String key, String value pair with an accurate timestamp.
|
int |
getLogsCount()
String key, String value pair with an accurate timestamp.
|
List<Log> |
getLogsList()
String key, String value pair with an accurate timestamp.
|
LogOrBuilder |
getLogsOrBuilder(int index)
String key, String value pair with an accurate timestamp.
|
List<? extends LogOrBuilder> |
getLogsOrBuilderList()
String key, String value pair with an accurate timestamp.
|
String |
getOperationName()
A logic name represents this span.
|
com.google.protobuf.ByteString |
getOperationNameBytes()
A logic name represents this span.
|
int |
getParentSpanId()
The number id of the parent span in the whole segment.
|
String |
getPeer()
Remote address of the peer in RPC/MQ case.
|
com.google.protobuf.ByteString |
getPeerBytes()
Remote address of the peer in RPC/MQ case.
|
SegmentReference |
getRefs(int index)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SegmentReference.Builder |
getRefsBuilder(int index)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
List<SegmentReference.Builder> |
getRefsBuilderList()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
int |
getRefsCount()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
List<SegmentReference> |
getRefsList()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SegmentReferenceOrBuilder |
getRefsOrBuilder(int index)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
List<? extends SegmentReferenceOrBuilder> |
getRefsOrBuilderList()
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
boolean |
getSkipAnalysis()
Force the backend don't do analysis, if the value is TRUE.
|
int |
getSpanId()
The number id of the span.
|
SpanLayer |
getSpanLayer()
Span layer represent the component tech stack, related to the network tech.
|
int |
getSpanLayerValue()
Span layer represent the component tech stack, related to the network tech.
|
SpanType |
getSpanType()
Span type represents the role in the RPC context.
|
int |
getSpanTypeValue()
Span type represents the role in the RPC context.
|
long |
getStartTime()
Start timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
KeyStringValuePair |
getTags(int index)
String key, String value pair.
|
KeyStringValuePair.Builder |
getTagsBuilder(int index)
String key, String value pair.
|
List<KeyStringValuePair.Builder> |
getTagsBuilderList()
String key, String value pair.
|
int |
getTagsCount()
String key, String value pair.
|
List<KeyStringValuePair> |
getTagsList()
String key, String value pair.
|
KeyStringValuePairOrBuilder |
getTagsOrBuilder(int index)
String key, String value pair.
|
List<? extends KeyStringValuePairOrBuilder> |
getTagsOrBuilderList()
String key, String value pair.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpanObject.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpanObject.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpanObject.Builder |
mergeFrom(SpanObject other) |
SpanObject.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpanObject.Builder |
removeLogs(int index)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
removeRefs(int index)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
removeTags(int index)
String key, String value pair.
|
SpanObject.Builder |
setComponentId(int value)
Component id is a predefinited number id in the SkyWalking.
|
SpanObject.Builder |
setEndTime(long value)
End timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
SpanObject.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpanObject.Builder |
setIsError(boolean value)
The status of the span.
|
SpanObject.Builder |
setLogs(int index,
Log.Builder builderForValue)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
setLogs(int index,
Log value)
String key, String value pair with an accurate timestamp.
|
SpanObject.Builder |
setOperationName(String value)
A logic name represents this span.
|
SpanObject.Builder |
setOperationNameBytes(com.google.protobuf.ByteString value)
A logic name represents this span.
|
SpanObject.Builder |
setParentSpanId(int value)
The number id of the parent span in the whole segment.
|
SpanObject.Builder |
setPeer(String value)
Remote address of the peer in RPC/MQ case.
|
SpanObject.Builder |
setPeerBytes(com.google.protobuf.ByteString value)
Remote address of the peer in RPC/MQ case.
|
SpanObject.Builder |
setRefs(int index,
SegmentReference.Builder builderForValue)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
setRefs(int index,
SegmentReference value)
<Optional>
In the across thread and across process, these references targeting the parent segments.
|
SpanObject.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SpanObject.Builder |
setSkipAnalysis(boolean value)
Force the backend don't do analysis, if the value is TRUE.
|
SpanObject.Builder |
setSpanId(int value)
The number id of the span.
|
SpanObject.Builder |
setSpanLayer(SpanLayer value)
Span layer represent the component tech stack, related to the network tech.
|
SpanObject.Builder |
setSpanLayerValue(int value)
Span layer represent the component tech stack, related to the network tech.
|
SpanObject.Builder |
setSpanType(SpanType value)
Span type represents the role in the RPC context.
|
SpanObject.Builder |
setSpanTypeValue(int value)
Span type represents the role in the RPC context.
|
SpanObject.Builder |
setStartTime(long value)
Start timestamp in milliseconds of this span,
measured between the current time and midnight, January 1, 1970 UTC.
|
SpanObject.Builder |
setTags(int index,
KeyStringValuePair.Builder builderForValue)
String key, String value pair.
|
SpanObject.Builder |
setTags(int index,
KeyStringValuePair value)
String key, String value pair.
|
SpanObject.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpanObject build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpanObject buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpanObject.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>public SpanObject.Builder mergeFrom(SpanObject other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public SpanObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpanObject.Builder>IOExceptionpublic int getSpanId()
The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;getSpanId in interface SpanObjectOrBuilderpublic 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.public SpanObject.Builder clearSpanId()
The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;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 in interface SpanObjectOrBuilderpublic 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.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;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 in interface SpanObjectOrBuilderpublic 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.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;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 in interface SpanObjectOrBuilderpublic 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.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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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.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;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.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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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.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;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.public int getSpanTypeValue()
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;getSpanTypeValue in interface SpanObjectOrBuilderpublic 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.public SpanType getSpanType()
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;getSpanType in interface SpanObjectOrBuilderpublic SpanObject.Builder setSpanType(SpanType value)
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;value - The spanType to set.public SpanObject.Builder clearSpanType()
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;public int getSpanLayerValue()
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;getSpanLayerValue in interface SpanObjectOrBuilderpublic 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.public SpanLayer getSpanLayer()
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;getSpanLayer in interface SpanObjectOrBuilderpublic 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.public SpanObject.Builder clearSpanLayer()
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;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 in interface SpanObjectOrBuilderpublic 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.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;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 in interface SpanObjectOrBuilderpublic 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.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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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 in interface SpanObjectOrBuilderpublic 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 in interface SpanObjectOrBuilderpublic 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;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;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;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 in interface SpanObjectOrBuilderpublic 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.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;public final SpanObject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>public final SpanObject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpanObject.Builder>Copyright © 2022 The Apache Software Foundation. All rights reserved.