public final class SegmentObject extends com.google.protobuf.GeneratedMessageV3 implements SegmentObjectOrBuilder
The segment is a collection of spans. It includes all collected spans in a simple one request context, such as a HTTP request process. We recommend the agent/SDK report all tracked data of one request once for all, such as, typically, such as in Java, one segment represent all tracked operations(spans) of one request context in the same thread. At the same time, in some language there is not a clear concept like golang, it could represent all tracked operations of one request context.Protobuf type
skywalking.v3.SegmentObject| Modifier and Type | Class and Description |
|---|---|
static class |
SegmentObject.Builder
The segment is a collection of spans.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ISSIZELIMITED_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
SERVICEINSTANCE_FIELD_NUMBER |
static int |
SPANS_FIELD_NUMBER |
static int |
TRACEID_FIELD_NUMBER |
static int |
TRACESEGMENTID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SegmentObject |
getDefaultInstance() |
SegmentObject |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIsSizeLimited()
Whether the segment includes all tracked spans.
|
com.google.protobuf.Parser<SegmentObject> |
getParserForType() |
int |
getSerializedSize() |
String |
getService()
**Service**.
|
com.google.protobuf.ByteString |
getServiceBytes()
**Service**.
|
String |
getServiceInstance()
**Service Instance**.
|
com.google.protobuf.ByteString |
getServiceInstanceBytes()
**Service Instance**.
|
SpanObject |
getSpans(int index)
Span collections included in this segment.
|
int |
getSpansCount()
Span collections included in this segment.
|
List<SpanObject> |
getSpansList()
Span collections included in this segment.
|
SpanObjectOrBuilder |
getSpansOrBuilder(int index)
Span collections included in this segment.
|
List<? extends SpanObjectOrBuilder> |
getSpansOrBuilderList()
Span collections included in this segment.
|
String |
getTraceId()
A string id represents the whole trace.
|
com.google.protobuf.ByteString |
getTraceIdBytes()
A string id represents the whole trace.
|
String |
getTraceSegmentId()
A unique id represents this segment.
|
com.google.protobuf.ByteString |
getTraceSegmentIdBytes()
A unique id represents this segment.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SegmentObject.Builder |
newBuilder() |
static SegmentObject.Builder |
newBuilder(SegmentObject prototype) |
SegmentObject.Builder |
newBuilderForType() |
protected SegmentObject.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SegmentObject |
parseDelimitedFrom(InputStream input) |
static SegmentObject |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SegmentObject |
parseFrom(byte[] data) |
static SegmentObject |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SegmentObject |
parseFrom(ByteBuffer data) |
static SegmentObject |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SegmentObject |
parseFrom(com.google.protobuf.ByteString data) |
static SegmentObject |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SegmentObject |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SegmentObject |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SegmentObject |
parseFrom(InputStream input) |
static SegmentObject |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SegmentObject> |
parser() |
SegmentObject.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRACEID_FIELD_NUMBER
public static final int TRACESEGMENTID_FIELD_NUMBER
public static final int SPANS_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int SERVICEINSTANCE_FIELD_NUMBER
public static final int ISSIZELIMITED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTraceId()
A string id represents the whole trace.
string traceId = 1;getTraceId in interface SegmentObjectOrBuilderpublic com.google.protobuf.ByteString getTraceIdBytes()
A string id represents the whole trace.
string traceId = 1;getTraceIdBytes in interface SegmentObjectOrBuilderpublic String getTraceSegmentId()
A unique id represents this segment. Other segments could use this id to reference as a child segment.
string traceSegmentId = 2;getTraceSegmentId in interface SegmentObjectOrBuilderpublic com.google.protobuf.ByteString getTraceSegmentIdBytes()
A unique id represents this segment. Other segments could use this id to reference as a child segment.
string traceSegmentId = 2;getTraceSegmentIdBytes in interface SegmentObjectOrBuilderpublic List<SpanObject> getSpansList()
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;getSpansList in interface SegmentObjectOrBuilderpublic List<? extends SpanObjectOrBuilder> getSpansOrBuilderList()
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;getSpansOrBuilderList in interface SegmentObjectOrBuilderpublic int getSpansCount()
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;getSpansCount in interface SegmentObjectOrBuilderpublic SpanObject getSpans(int index)
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;getSpans in interface SegmentObjectOrBuilderpublic SpanObjectOrBuilder getSpansOrBuilder(int index)
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;getSpansOrBuilder in interface SegmentObjectOrBuilderpublic String getService()
**Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level.
string service = 4;getService in interface SegmentObjectOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
**Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests. The logic name represents the service. This would show as a separate node in the topology. The metrics analyzed from the spans, would be aggregated for this entity as the service level.
string service = 4;getServiceBytes in interface SegmentObjectOrBuilderpublic String getServiceInstance()
**Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 5;getServiceInstance in interface SegmentObjectOrBuilderpublic com.google.protobuf.ByteString getServiceInstanceBytes()
**Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process. The logic name represents the service instance. This would show as a separate node in the instance relationship. The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
string serviceInstance = 5;getServiceInstanceBytes in interface SegmentObjectOrBuilderpublic boolean getIsSizeLimited()
Whether the segment includes all tracked spans. In the production environment tracked, some tasks could include too many spans for one request context, such as a batch update for a cache, or an async job. The agent/SDK could optimize or ignore some tracked spans for better performance. In this case, the value should be flagged as TRUE.
bool isSizeLimited = 6;getIsSizeLimited in interface SegmentObjectOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SegmentObject parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SegmentObject parseFrom(InputStream input) throws IOException
IOExceptionpublic static SegmentObject parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SegmentObject parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SegmentObject parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SegmentObject parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SegmentObject parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SegmentObject.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SegmentObject.Builder newBuilder()
public static SegmentObject.Builder newBuilder(SegmentObject prototype)
public SegmentObject.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SegmentObject.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SegmentObject getDefaultInstance()
public static com.google.protobuf.Parser<SegmentObject> parser()
public com.google.protobuf.Parser<SegmentObject> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SegmentObject getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 The Apache Software Foundation. All rights reserved.