public interface SpanObjectOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getComponentId()
Component id is a predefinited number id in the SkyWalking.
|
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.
|
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.
|
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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getSpanId()
The number id of the span. Should be unique in the whole segment. Starting at 0.
int32 spanId = 1;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;long getStartTime()
Start timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.
int64 startTime = 3;long getEndTime()
End timestamp in milliseconds of this span, measured between the current time and midnight, January 1, 1970 UTC.
int64 endTime = 4;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;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;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;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;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;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;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;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;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;int getSpanTypeValue()
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;SpanType getSpanType()
Span type represents the role in the RPC context.
.skywalking.v3.SpanType spanType = 8;int getSpanLayerValue()
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;SpanLayer getSpanLayer()
Span layer represent the component tech stack, related to the network tech.
.skywalking.v3.SpanLayer spanLayer = 9;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;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;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;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;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;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;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;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;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;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;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;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;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;Copyright © 2022 The Apache Software Foundation. All rights reserved.