Package io.opencensus.proto.trace.v1
Class Span
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.opencensus.proto.trace.v1.Span
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SpanOrBuilder,Serializable
public final class Span extends com.google.protobuf.GeneratedMessageV3 implements SpanOrBuilder
A span represents a single operation within a trace. Spans can be nested to form a trace tree. Spans may also be linked to other spans from the same or different trace. And form graphs. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous - there may be gaps or overlaps between spans in a trace. The next id is 17. TODO(bdrutu): Add an example.
Protobuf typeopencensus.proto.trace.v1.Span- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpan.AttributesA set of attributes, each with a key and a value.static interfaceSpan.AttributesOrBuilderstatic classSpan.BuilderA span represents a single operation within a trace.static classSpan.LinkA pointer from the current span to another span in the same trace or in a different trace.static interfaceSpan.LinkOrBuilderstatic classSpan.LinksA collection of links, which are references from this span to a span in the same or different trace.static interfaceSpan.LinksOrBuilderstatic classSpan.SpanKindType of span.static classSpan.TimeEventA time-stamped annotation or message event in the Span.static interfaceSpan.TimeEventOrBuilderstatic classSpan.TimeEventsA collection of `TimeEvent`s.static interfaceSpan.TimeEventsOrBuilderstatic classSpan.TracestateThis field conveys information about request position in multiple distributed tracing graphs.static interfaceSpan.TracestateOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intCHILD_SPAN_COUNT_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intLINKS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPARENT_SPAN_ID_FIELD_NUMBERstatic intRESOURCE_FIELD_NUMBERstatic intSAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBERstatic intSPAN_ID_FIELD_NUMBERstatic intSTACK_TRACE_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBERstatic intTIME_EVENTS_FIELD_NUMBERstatic intTRACE_ID_FIELD_NUMBERstatic intTRACESTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Span.AttributesgetAttributes()A set of attributes on the span.Span.AttributesOrBuildergetAttributesOrBuilder()A set of attributes on the span.com.google.protobuf.UInt32ValuegetChildSpanCount()An optional number of child spans that were generated while this span was active.com.google.protobuf.UInt32ValueOrBuildergetChildSpanCountOrBuilder()An optional number of child spans that were generated while this span was active.static SpangetDefaultInstance()SpangetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.TimestampgetEndTime()The end time of the span.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The end time of the span.Span.SpanKindgetKind()Distinguishes between spans generated in a particular context.intgetKindValue()Distinguishes between spans generated in a particular context.Span.LinksgetLinks()The included links.Span.LinksOrBuildergetLinksOrBuilder()The included links.TruncatableStringgetName()A description of the span's operation.TruncatableStringOrBuildergetNameOrBuilder()A description of the span's operation.com.google.protobuf.ByteStringgetParentSpanId()The `span_id` of this span's parent span.com.google.protobuf.Parser<Span>getParserForType()ResourcegetResource()An optional resource that is associated with this span.ResourceOrBuildergetResourceOrBuilder()An optional resource that is associated with this span.com.google.protobuf.BoolValuegetSameProcessAsParentSpan()A highly recommended but not required flag that identifies when a trace crosses a process boundary.com.google.protobuf.BoolValueOrBuildergetSameProcessAsParentSpanOrBuilder()A highly recommended but not required flag that identifies when a trace crosses a process boundary.intgetSerializedSize()com.google.protobuf.ByteStringgetSpanId()A unique identifier for a span within a trace, assigned when the span is created.StackTracegetStackTrace()A stack trace captured at the start of the span.StackTraceOrBuildergetStackTraceOrBuilder()A stack trace captured at the start of the span.com.google.protobuf.TimestampgetStartTime()The start time of the span.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The start time of the span.StatusgetStatus()An optional final status for this span.StatusOrBuildergetStatusOrBuilder()An optional final status for this span.Span.TimeEventsgetTimeEvents()The included time events.Span.TimeEventsOrBuildergetTimeEventsOrBuilder()The included time events.com.google.protobuf.ByteStringgetTraceId()A unique identifier for a trace.Span.TracestategetTracestate()The Tracestate on the span.Span.TracestateOrBuildergetTracestateOrBuilder()The Tracestate on the span.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAttributes()A set of attributes on the span.booleanhasChildSpanCount()An optional number of child spans that were generated while this span was active.booleanhasEndTime()The end time of the span.inthashCode()booleanhasLinks()The included links.booleanhasName()A description of the span's operation.booleanhasResource()An optional resource that is associated with this span.booleanhasSameProcessAsParentSpan()A highly recommended but not required flag that identifies when a trace crosses a process boundary.booleanhasStackTrace()A stack trace captured at the start of the span.booleanhasStartTime()The start time of the span.booleanhasStatus()An optional final status for this span.booleanhasTimeEvents()The included time events.booleanhasTracestate()The Tracestate on the span.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Span.BuildernewBuilder()static Span.BuildernewBuilder(Span prototype)Span.BuildernewBuilderForType()protected Span.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SpanparseDelimitedFrom(InputStream input)static SpanparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(byte[] data)static SpanparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(com.google.protobuf.ByteString data)static SpanparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(com.google.protobuf.CodedInputStream input)static SpanparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(InputStream input)static SpanparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SpanparseFrom(ByteBuffer data)static SpanparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Span>parser()Span.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRACE_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPAN_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACESTATE_FIELD_NUMBER
public static final int TRACESTATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_SPAN_ID_FIELD_NUMBER
public static final int PARENT_SPAN_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STACK_TRACE_FIELD_NUMBER
public static final int STACK_TRACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_EVENTS_FIELD_NUMBER
public static final int TIME_EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LINKS_FIELD_NUMBER
public static final int LINKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER
public static final int SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHILD_SPAN_COUNT_FIELD_NUMBER
public static final int CHILD_SPAN_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getTraceId
public com.google.protobuf.ByteString getTraceId()
A unique identifier for a trace. All spans from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes is considered invalid. This field is semantically required. Receiver should generate new random trace_id if empty or invalid trace_id was received. This field is required.
bytes trace_id = 1;- Specified by:
getTraceIdin interfaceSpanOrBuilder- Returns:
- The traceId.
-
getSpanId
public com.google.protobuf.ByteString getSpanId()
A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes is considered invalid. This field is semantically required. Receiver should generate new random span_id if empty or invalid span_id was received. This field is required.
bytes span_id = 2;- Specified by:
getSpanIdin interfaceSpanOrBuilder- Returns:
- The spanId.
-
hasTracestate
public boolean hasTracestate()
The Tracestate on the span.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 15;- Specified by:
hasTracestatein interfaceSpanOrBuilder- Returns:
- Whether the tracestate field is set.
-
getTracestate
public Span.Tracestate getTracestate()
The Tracestate on the span.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 15;- Specified by:
getTracestatein interfaceSpanOrBuilder- Returns:
- The tracestate.
-
getTracestateOrBuilder
public Span.TracestateOrBuilder getTracestateOrBuilder()
The Tracestate on the span.
.opencensus.proto.trace.v1.Span.Tracestate tracestate = 15;- Specified by:
getTracestateOrBuilderin interfaceSpanOrBuilder
-
getParentSpanId
public com.google.protobuf.ByteString getParentSpanId()
The `span_id` of this span's parent span. If this is a root span, then this field must be empty. The ID is an 8-byte array.
bytes parent_span_id = 3;- Specified by:
getParentSpanIdin interfaceSpanOrBuilder- Returns:
- The parentSpanId.
-
hasName
public boolean hasName()
A description of the span's operation. For example, the name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name at the same call point in an application. This makes it easier to correlate spans in different traces. This field is semantically required to be set to non-empty string. When null or empty string received - receiver may use string "name" as a replacement. There might be smarted algorithms implemented by receiver to fix the empty span name. This field is required.
.opencensus.proto.trace.v1.TruncatableString name = 4;- Specified by:
hasNamein interfaceSpanOrBuilder- Returns:
- Whether the name field is set.
-
getName
public TruncatableString getName()
A description of the span's operation. For example, the name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name at the same call point in an application. This makes it easier to correlate spans in different traces. This field is semantically required to be set to non-empty string. When null or empty string received - receiver may use string "name" as a replacement. There might be smarted algorithms implemented by receiver to fix the empty span name. This field is required.
.opencensus.proto.trace.v1.TruncatableString name = 4;- Specified by:
getNamein interfaceSpanOrBuilder- Returns:
- The name.
-
getNameOrBuilder
public TruncatableStringOrBuilder getNameOrBuilder()
A description of the span's operation. For example, the name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name at the same call point in an application. This makes it easier to correlate spans in different traces. This field is semantically required to be set to non-empty string. When null or empty string received - receiver may use string "name" as a replacement. There might be smarted algorithms implemented by receiver to fix the empty span name. This field is required.
.opencensus.proto.trace.v1.TruncatableString name = 4;- Specified by:
getNameOrBuilderin interfaceSpanOrBuilder
-
getKindValue
public int getKindValue()
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify queueing latency associated with the span.
.opencensus.proto.trace.v1.Span.SpanKind kind = 14;- Specified by:
getKindValuein interfaceSpanOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
getKind
public Span.SpanKind getKind()
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify queueing latency associated with the span.
.opencensus.proto.trace.v1.Span.SpanKind kind = 14;- Specified by:
getKindin interfaceSpanOrBuilder- Returns:
- The kind.
-
hasStartTime
public boolean hasStartTime()
The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running. This field is semantically required. When not set on receive - receiver should set it to the value of end_time field if it was set. Or to the current time if neither was set. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp start_time = 5;- Specified by:
hasStartTimein interfaceSpanOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running. This field is semantically required. When not set on receive - receiver should set it to the value of end_time field if it was set. Or to the current time if neither was set. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp start_time = 5;- Specified by:
getStartTimein interfaceSpanOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running. This field is semantically required. When not set on receive - receiver should set it to the value of end_time field if it was set. Or to the current time if neither was set. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp start_time = 5;- Specified by:
getStartTimeOrBuilderin interfaceSpanOrBuilder
-
hasEndTime
public boolean hasEndTime()
The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running. This field is semantically required. When not set on receive - receiver should set it to start_time value. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp end_time = 6;- Specified by:
hasEndTimein interfaceSpanOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running. This field is semantically required. When not set on receive - receiver should set it to start_time value. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp end_time = 6;- Specified by:
getEndTimein interfaceSpanOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running. This field is semantically required. When not set on receive - receiver should set it to start_time value. It is important to keep end_time > start_time for consistency. This field is required.
.google.protobuf.Timestamp end_time = 6;- Specified by:
getEndTimeOrBuilderin interfaceSpanOrBuilder
-
hasAttributes
public boolean hasAttributes()
A set of attributes on the span.
.opencensus.proto.trace.v1.Span.Attributes attributes = 7;- Specified by:
hasAttributesin interfaceSpanOrBuilder- Returns:
- Whether the attributes field is set.
-
getAttributes
public Span.Attributes getAttributes()
A set of attributes on the span.
.opencensus.proto.trace.v1.Span.Attributes attributes = 7;- Specified by:
getAttributesin interfaceSpanOrBuilder- Returns:
- The attributes.
-
getAttributesOrBuilder
public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the span.
.opencensus.proto.trace.v1.Span.Attributes attributes = 7;- Specified by:
getAttributesOrBuilderin interfaceSpanOrBuilder
-
hasStackTrace
public boolean hasStackTrace()
A stack trace captured at the start of the span.
.opencensus.proto.trace.v1.StackTrace stack_trace = 8;- Specified by:
hasStackTracein interfaceSpanOrBuilder- Returns:
- Whether the stackTrace field is set.
-
getStackTrace
public StackTrace getStackTrace()
A stack trace captured at the start of the span.
.opencensus.proto.trace.v1.StackTrace stack_trace = 8;- Specified by:
getStackTracein interfaceSpanOrBuilder- Returns:
- The stackTrace.
-
getStackTraceOrBuilder
public StackTraceOrBuilder getStackTraceOrBuilder()
A stack trace captured at the start of the span.
.opencensus.proto.trace.v1.StackTrace stack_trace = 8;- Specified by:
getStackTraceOrBuilderin interfaceSpanOrBuilder
-
hasTimeEvents
public boolean hasTimeEvents()
The included time events.
.opencensus.proto.trace.v1.Span.TimeEvents time_events = 9;- Specified by:
hasTimeEventsin interfaceSpanOrBuilder- Returns:
- Whether the timeEvents field is set.
-
getTimeEvents
public Span.TimeEvents getTimeEvents()
The included time events.
.opencensus.proto.trace.v1.Span.TimeEvents time_events = 9;- Specified by:
getTimeEventsin interfaceSpanOrBuilder- Returns:
- The timeEvents.
-
getTimeEventsOrBuilder
public Span.TimeEventsOrBuilder getTimeEventsOrBuilder()
The included time events.
.opencensus.proto.trace.v1.Span.TimeEvents time_events = 9;- Specified by:
getTimeEventsOrBuilderin interfaceSpanOrBuilder
-
hasLinks
public boolean hasLinks()
The included links.
.opencensus.proto.trace.v1.Span.Links links = 10;- Specified by:
hasLinksin interfaceSpanOrBuilder- Returns:
- Whether the links field is set.
-
getLinks
public Span.Links getLinks()
The included links.
.opencensus.proto.trace.v1.Span.Links links = 10;- Specified by:
getLinksin interfaceSpanOrBuilder- Returns:
- The links.
-
getLinksOrBuilder
public Span.LinksOrBuilder getLinksOrBuilder()
The included links.
.opencensus.proto.trace.v1.Span.Links links = 10;- Specified by:
getLinksOrBuilderin interfaceSpanOrBuilder
-
hasStatus
public boolean hasStatus()
An optional final status for this span. Semantically when Status wasn't set it is means span ended without errors and assume Status.Ok (code = 0).
.opencensus.proto.trace.v1.Status status = 11;- Specified by:
hasStatusin interfaceSpanOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public Status getStatus()
An optional final status for this span. Semantically when Status wasn't set it is means span ended without errors and assume Status.Ok (code = 0).
.opencensus.proto.trace.v1.Status status = 11;- Specified by:
getStatusin interfaceSpanOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
public StatusOrBuilder getStatusOrBuilder()
An optional final status for this span. Semantically when Status wasn't set it is means span ended without errors and assume Status.Ok (code = 0).
.opencensus.proto.trace.v1.Status status = 11;- Specified by:
getStatusOrBuilderin interfaceSpanOrBuilder
-
hasResource
public boolean hasResource()
An optional resource that is associated with this span. If not set, this span should be part of a batch that does include the resource information, unless resource information is unknown.
.opencensus.proto.resource.v1.Resource resource = 16;- Specified by:
hasResourcein interfaceSpanOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
public Resource getResource()
An optional resource that is associated with this span. If not set, this span should be part of a batch that does include the resource information, unless resource information is unknown.
.opencensus.proto.resource.v1.Resource resource = 16;- Specified by:
getResourcein interfaceSpanOrBuilder- Returns:
- The resource.
-
getResourceOrBuilder
public ResourceOrBuilder getResourceOrBuilder()
An optional resource that is associated with this span. If not set, this span should be part of a batch that does include the resource information, unless resource information is unknown.
.opencensus.proto.resource.v1.Resource resource = 16;- Specified by:
getResourceOrBuilderin interfaceSpanOrBuilder
-
hasSameProcessAsParentSpan
public boolean hasSameProcessAsParentSpan()
A highly recommended but not required flag that identifies when a trace crosses a process boundary. True when the parent_span belongs to the same process as the current span. This flag is most commonly used to indicate the need to adjust time as clocks in different processes may not be synchronized.
.google.protobuf.BoolValue same_process_as_parent_span = 12;- Specified by:
hasSameProcessAsParentSpanin interfaceSpanOrBuilder- Returns:
- Whether the sameProcessAsParentSpan field is set.
-
getSameProcessAsParentSpan
public com.google.protobuf.BoolValue getSameProcessAsParentSpan()
A highly recommended but not required flag that identifies when a trace crosses a process boundary. True when the parent_span belongs to the same process as the current span. This flag is most commonly used to indicate the need to adjust time as clocks in different processes may not be synchronized.
.google.protobuf.BoolValue same_process_as_parent_span = 12;- Specified by:
getSameProcessAsParentSpanin interfaceSpanOrBuilder- Returns:
- The sameProcessAsParentSpan.
-
getSameProcessAsParentSpanOrBuilder
public com.google.protobuf.BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder()
A highly recommended but not required flag that identifies when a trace crosses a process boundary. True when the parent_span belongs to the same process as the current span. This flag is most commonly used to indicate the need to adjust time as clocks in different processes may not be synchronized.
.google.protobuf.BoolValue same_process_as_parent_span = 12;- Specified by:
getSameProcessAsParentSpanOrBuilderin interfaceSpanOrBuilder
-
hasChildSpanCount
public boolean hasChildSpanCount()
An optional number of child spans that were generated while this span was active. If set, allows an implementation to detect missing child spans.
.google.protobuf.UInt32Value child_span_count = 13;- Specified by:
hasChildSpanCountin interfaceSpanOrBuilder- Returns:
- Whether the childSpanCount field is set.
-
getChildSpanCount
public com.google.protobuf.UInt32Value getChildSpanCount()
An optional number of child spans that were generated while this span was active. If set, allows an implementation to detect missing child spans.
.google.protobuf.UInt32Value child_span_count = 13;- Specified by:
getChildSpanCountin interfaceSpanOrBuilder- Returns:
- The childSpanCount.
-
getChildSpanCountOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getChildSpanCountOrBuilder()
An optional number of child spans that were generated while this span was active. If set, allows an implementation to detect missing child spans.
.google.protobuf.UInt32Value child_span_count = 13;- Specified by:
getChildSpanCountOrBuilderin interfaceSpanOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Span parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Span parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Span parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Span parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Span parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Span.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Span.Builder newBuilder()
-
newBuilder
public static Span.Builder newBuilder(Span prototype)
-
toBuilder
public Span.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Span.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Span getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Span> parser()
-
getParserForType
public com.google.protobuf.Parser<Span> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Span getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-