public static final class Span.Builder extends GeneratedMessageV3.Builder<Span.Builder> implements SpanOrBuilder
A span represents a single operation within a trace. Spans can be nested to form a trace tree. 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.Protobuf type
google.devtools.cloudtrace.v2.Span
Modifier and Type | Method and Description |
---|---|
Span.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Span |
build() |
Span |
buildPartial() |
Span.Builder |
clear() |
Span.Builder |
clearAttributes()
A set of attributes on the span.
|
Span.Builder |
clearChildSpanCount()
An optional number of child spans that were generated while this span
was active.
|
Span.Builder |
clearDisplayName()
A description of the span's operation (up to 128 bytes).
|
Span.Builder |
clearEndTime()
The end time of the span.
|
Span.Builder |
clearField(Descriptors.FieldDescriptor field) |
Span.Builder |
clearLinks()
Links associated with the span.
|
Span.Builder |
clearName()
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID] is a unique identifier for a trace within a project;
it is a 32-character hexadecimal encoding of a 16-byte array.
|
Span.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Span.Builder |
clearParentSpanId()
The [SPAN_ID] of this span's parent span.
|
Span.Builder |
clearSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
Span.Builder |
clearSpanId()
The [SPAN_ID] portion of the span's resource name.
|
Span.Builder |
clearStackTrace()
Stack trace captured at the start of the span.
|
Span.Builder |
clearStartTime()
The start time of the span.
|
Span.Builder |
clearStatus()
An optional final status for this span.
|
Span.Builder |
clearTimeEvents()
A set of time events.
|
Span.Builder |
clone() |
Span.Attributes |
getAttributes()
A set of attributes on the span.
|
Span.Attributes.Builder |
getAttributesBuilder()
A set of attributes on the span.
|
Span.AttributesOrBuilder |
getAttributesOrBuilder()
A set of attributes on the span.
|
Int32Value |
getChildSpanCount()
An optional number of child spans that were generated while this span
was active.
|
Int32Value.Builder |
getChildSpanCountBuilder()
An optional number of child spans that were generated while this span
was active.
|
Int32ValueOrBuilder |
getChildSpanCountOrBuilder()
An optional number of child spans that were generated while this span
was active.
|
Span |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
TruncatableString |
getDisplayName()
A description of the span's operation (up to 128 bytes).
|
TruncatableString.Builder |
getDisplayNameBuilder()
A description of the span's operation (up to 128 bytes).
|
TruncatableStringOrBuilder |
getDisplayNameOrBuilder()
A description of the span's operation (up to 128 bytes).
|
Timestamp |
getEndTime()
The end time of the span.
|
Timestamp.Builder |
getEndTimeBuilder()
The end time of the span.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
The end time of the span.
|
Span.Links |
getLinks()
Links associated with the span.
|
Span.Links.Builder |
getLinksBuilder()
Links associated with the span.
|
Span.LinksOrBuilder |
getLinksOrBuilder()
Links associated with the span.
|
java.lang.String |
getName()
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID] is a unique identifier for a trace within a project;
it is a 32-character hexadecimal encoding of a 16-byte array.
|
ByteString |
getNameBytes()
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID] is a unique identifier for a trace within a project;
it is a 32-character hexadecimal encoding of a 16-byte array.
|
java.lang.String |
getParentSpanId()
The [SPAN_ID] of this span's parent span.
|
ByteString |
getParentSpanIdBytes()
The [SPAN_ID] of this span's parent span.
|
BoolValue |
getSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
BoolValue.Builder |
getSameProcessAsParentSpanBuilder()
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
BoolValueOrBuilder |
getSameProcessAsParentSpanOrBuilder()
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
java.lang.String |
getSpanId()
The [SPAN_ID] portion of the span's resource name.
|
ByteString |
getSpanIdBytes()
The [SPAN_ID] portion of the span's resource name.
|
StackTrace |
getStackTrace()
Stack trace captured at the start of the span.
|
StackTrace.Builder |
getStackTraceBuilder()
Stack trace captured at the start of the span.
|
StackTraceOrBuilder |
getStackTraceOrBuilder()
Stack trace captured at the start of the span.
|
Timestamp |
getStartTime()
The start time of the span.
|
Timestamp.Builder |
getStartTimeBuilder()
The start time of the span.
|
TimestampOrBuilder |
getStartTimeOrBuilder()
The start time of the span.
|
Status |
getStatus()
An optional final status for this span.
|
Status.Builder |
getStatusBuilder()
An optional final status for this span.
|
StatusOrBuilder |
getStatusOrBuilder()
An optional final status for this span.
|
Span.TimeEvents |
getTimeEvents()
A set of time events.
|
Span.TimeEvents.Builder |
getTimeEventsBuilder()
A set of time events.
|
Span.TimeEventsOrBuilder |
getTimeEventsOrBuilder()
A set of time events.
|
boolean |
hasAttributes()
A set of attributes on the span.
|
boolean |
hasChildSpanCount()
An optional number of child spans that were generated while this span
was active.
|
boolean |
hasDisplayName()
A description of the span's operation (up to 128 bytes).
|
boolean |
hasEndTime()
The end time of the span.
|
boolean |
hasLinks()
Links associated with the span.
|
boolean |
hasSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
boolean |
hasStackTrace()
Stack trace captured at the start of the span.
|
boolean |
hasStartTime()
The start time of the span.
|
boolean |
hasStatus()
An optional final status for this span.
|
boolean |
hasTimeEvents()
A set of time events.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Span.Builder |
mergeAttributes(Span.Attributes value)
A set of attributes on the span.
|
Span.Builder |
mergeChildSpanCount(Int32Value value)
An optional number of child spans that were generated while this span
was active.
|
Span.Builder |
mergeDisplayName(TruncatableString value)
A description of the span's operation (up to 128 bytes).
|
Span.Builder |
mergeEndTime(Timestamp value)
The end time of the span.
|
Span.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Span.Builder |
mergeFrom(Message other) |
Span.Builder |
mergeFrom(Span other) |
Span.Builder |
mergeLinks(Span.Links value)
Links associated with the span.
|
Span.Builder |
mergeSameProcessAsParentSpan(BoolValue value)
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
Span.Builder |
mergeStackTrace(StackTrace value)
Stack trace captured at the start of the span.
|
Span.Builder |
mergeStartTime(Timestamp value)
The start time of the span.
|
Span.Builder |
mergeStatus(Status value)
An optional final status for this span.
|
Span.Builder |
mergeTimeEvents(Span.TimeEvents value)
A set of time events.
|
Span.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Span.Builder |
setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the span.
|
Span.Builder |
setAttributes(Span.Attributes value)
A set of attributes on the span.
|
Span.Builder |
setChildSpanCount(Int32Value.Builder builderForValue)
An optional number of child spans that were generated while this span
was active.
|
Span.Builder |
setChildSpanCount(Int32Value value)
An optional number of child spans that were generated while this span
was active.
|
Span.Builder |
setDisplayName(TruncatableString.Builder builderForValue)
A description of the span's operation (up to 128 bytes).
|
Span.Builder |
setDisplayName(TruncatableString value)
A description of the span's operation (up to 128 bytes).
|
Span.Builder |
setEndTime(Timestamp.Builder builderForValue)
The end time of the span.
|
Span.Builder |
setEndTime(Timestamp value)
The end time of the span.
|
Span.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Span.Builder |
setLinks(Span.Links.Builder builderForValue)
Links associated with the span.
|
Span.Builder |
setLinks(Span.Links value)
Links associated with the span.
|
Span.Builder |
setName(java.lang.String value)
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID] is a unique identifier for a trace within a project;
it is a 32-character hexadecimal encoding of a 16-byte array.
|
Span.Builder |
setNameBytes(ByteString value)
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID] is a unique identifier for a trace within a project;
it is a 32-character hexadecimal encoding of a 16-byte array.
|
Span.Builder |
setParentSpanId(java.lang.String value)
The [SPAN_ID] of this span's parent span.
|
Span.Builder |
setParentSpanIdBytes(ByteString value)
The [SPAN_ID] of this span's parent span.
|
Span.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Span.Builder |
setSameProcessAsParentSpan(BoolValue.Builder builderForValue)
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
Span.Builder |
setSameProcessAsParentSpan(BoolValue value)
(Optional) Set this parameter to indicate whether this span is in
the same process as its parent.
|
Span.Builder |
setSpanId(java.lang.String value)
The [SPAN_ID] portion of the span's resource name.
|
Span.Builder |
setSpanIdBytes(ByteString value)
The [SPAN_ID] portion of the span's resource name.
|
Span.Builder |
setStackTrace(StackTrace.Builder builderForValue)
Stack trace captured at the start of the span.
|
Span.Builder |
setStackTrace(StackTrace value)
Stack trace captured at the start of the span.
|
Span.Builder |
setStartTime(Timestamp.Builder builderForValue)
The start time of the span.
|
Span.Builder |
setStartTime(Timestamp value)
The start time of the span.
|
Span.Builder |
setStatus(Status.Builder builderForValue)
An optional final status for this span.
|
Span.Builder |
setStatus(Status value)
An optional final status for this span.
|
Span.Builder |
setTimeEvents(Span.TimeEvents.Builder builderForValue)
A set of time events.
|
Span.Builder |
setTimeEvents(Span.TimeEvents value)
A set of time events.
|
Span.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Span.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Span.Builder>
public Span getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Span build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Span buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Span.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Builder>
public Span.Builder mergeFrom(Span other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Span.Builder>
public Span.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Span.Builder>
java.io.IOException
public java.lang.String getName()
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
string name = 1;
getName
in interface SpanOrBuilder
public ByteString getNameBytes()
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
string name = 1;
getNameBytes
in interface SpanOrBuilder
public Span.Builder setName(java.lang.String value)
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
string name = 1;
public Span.Builder clearName()
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
string name = 1;
public Span.Builder setNameBytes(ByteString value)
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
string name = 1;
public java.lang.String getSpanId()
The [SPAN_ID] portion of the span's resource name.
string span_id = 2;
getSpanId
in interface SpanOrBuilder
public ByteString getSpanIdBytes()
The [SPAN_ID] portion of the span's resource name.
string span_id = 2;
getSpanIdBytes
in interface SpanOrBuilder
public Span.Builder setSpanId(java.lang.String value)
The [SPAN_ID] portion of the span's resource name.
string span_id = 2;
public Span.Builder clearSpanId()
The [SPAN_ID] portion of the span's resource name.
string span_id = 2;
public Span.Builder setSpanIdBytes(ByteString value)
The [SPAN_ID] portion of the span's resource name.
string span_id = 2;
public java.lang.String getParentSpanId()
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;
getParentSpanId
in interface SpanOrBuilder
public ByteString getParentSpanIdBytes()
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;
getParentSpanIdBytes
in interface SpanOrBuilder
public Span.Builder setParentSpanId(java.lang.String value)
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;
public Span.Builder clearParentSpanId()
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;
public Span.Builder setParentSpanIdBytes(ByteString value)
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
string parent_span_id = 3;
public boolean hasDisplayName()
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
hasDisplayName
in interface SpanOrBuilder
public TruncatableString getDisplayName()
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
getDisplayName
in interface SpanOrBuilder
public Span.Builder setDisplayName(TruncatableString value)
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
public Span.Builder setDisplayName(TruncatableString.Builder builderForValue)
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
public Span.Builder mergeDisplayName(TruncatableString value)
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
public Span.Builder clearDisplayName()
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
public TruncatableString.Builder getDisplayNameBuilder()
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
public TruncatableStringOrBuilder getDisplayNameOrBuilder()
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the {% dynamic print site_values.console_name %}. For example, the display 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 within an application and at the same call point. This makes it easier to correlate spans in different traces.
.google.devtools.cloudtrace.v2.TruncatableString display_name = 4;
getDisplayNameOrBuilder
in interface SpanOrBuilder
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.
.google.protobuf.Timestamp start_time = 5;
hasStartTime
in interface SpanOrBuilder
public 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.
.google.protobuf.Timestamp start_time = 5;
getStartTime
in interface SpanOrBuilder
public Span.Builder setStartTime(Timestamp value)
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.
.google.protobuf.Timestamp start_time = 5;
public Span.Builder setStartTime(Timestamp.Builder builderForValue)
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.
.google.protobuf.Timestamp start_time = 5;
public Span.Builder mergeStartTime(Timestamp value)
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.
.google.protobuf.Timestamp start_time = 5;
public Span.Builder clearStartTime()
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.
.google.protobuf.Timestamp start_time = 5;
public Timestamp.Builder getStartTimeBuilder()
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.
.google.protobuf.Timestamp start_time = 5;
public 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.
.google.protobuf.Timestamp start_time = 5;
getStartTimeOrBuilder
in interface SpanOrBuilder
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.
.google.protobuf.Timestamp end_time = 6;
hasEndTime
in interface SpanOrBuilder
public 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.
.google.protobuf.Timestamp end_time = 6;
getEndTime
in interface SpanOrBuilder
public Span.Builder setEndTime(Timestamp value)
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.
.google.protobuf.Timestamp end_time = 6;
public Span.Builder setEndTime(Timestamp.Builder builderForValue)
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.
.google.protobuf.Timestamp end_time = 6;
public Span.Builder mergeEndTime(Timestamp value)
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.
.google.protobuf.Timestamp end_time = 6;
public Span.Builder clearEndTime()
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.
.google.protobuf.Timestamp end_time = 6;
public Timestamp.Builder getEndTimeBuilder()
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.
.google.protobuf.Timestamp end_time = 6;
public 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.
.google.protobuf.Timestamp end_time = 6;
getEndTimeOrBuilder
in interface SpanOrBuilder
public boolean hasAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
hasAttributes
in interface SpanOrBuilder
public Span.Attributes getAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
getAttributes
in interface SpanOrBuilder
public Span.Builder setAttributes(Span.Attributes value)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
public Span.Builder setAttributes(Span.Attributes.Builder builderForValue)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
public Span.Builder mergeAttributes(Span.Attributes value)
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
public Span.Builder clearAttributes()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
public Span.Attributes.Builder getAttributesBuilder()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
public Span.AttributesOrBuilder getAttributesOrBuilder()
A set of attributes on the span. You can have up to 32 attributes per span.
.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;
getAttributesOrBuilder
in interface SpanOrBuilder
public boolean hasStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
hasStackTrace
in interface SpanOrBuilder
public StackTrace getStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
getStackTrace
in interface SpanOrBuilder
public Span.Builder setStackTrace(StackTrace value)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
public Span.Builder setStackTrace(StackTrace.Builder builderForValue)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
public Span.Builder mergeStackTrace(StackTrace value)
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
public Span.Builder clearStackTrace()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
public StackTrace.Builder getStackTraceBuilder()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
public StackTraceOrBuilder getStackTraceOrBuilder()
Stack trace captured at the start of the span.
.google.devtools.cloudtrace.v2.StackTrace stack_trace = 8;
getStackTraceOrBuilder
in interface SpanOrBuilder
public boolean hasTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
hasTimeEvents
in interface SpanOrBuilder
public Span.TimeEvents getTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
getTimeEvents
in interface SpanOrBuilder
public Span.Builder setTimeEvents(Span.TimeEvents value)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
public Span.Builder setTimeEvents(Span.TimeEvents.Builder builderForValue)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
public Span.Builder mergeTimeEvents(Span.TimeEvents value)
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
public Span.Builder clearTimeEvents()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
public Span.TimeEvents.Builder getTimeEventsBuilder()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
public Span.TimeEventsOrBuilder getTimeEventsOrBuilder()
A set of time events. You can have up to 32 annotations and 128 message events per span.
.google.devtools.cloudtrace.v2.Span.TimeEvents time_events = 9;
getTimeEventsOrBuilder
in interface SpanOrBuilder
public boolean hasLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
hasLinks
in interface SpanOrBuilder
public Span.Links getLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
getLinks
in interface SpanOrBuilder
public Span.Builder setLinks(Span.Links value)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
public Span.Builder setLinks(Span.Links.Builder builderForValue)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
public Span.Builder mergeLinks(Span.Links value)
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
public Span.Builder clearLinks()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
public Span.Links.Builder getLinksBuilder()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
public Span.LinksOrBuilder getLinksOrBuilder()
Links associated with the span. You can have up to 128 links per Span.
.google.devtools.cloudtrace.v2.Span.Links links = 10;
getLinksOrBuilder
in interface SpanOrBuilder
public boolean hasStatus()
An optional final status for this span.
.google.rpc.Status status = 11;
hasStatus
in interface SpanOrBuilder
public Status getStatus()
An optional final status for this span.
.google.rpc.Status status = 11;
getStatus
in interface SpanOrBuilder
public Span.Builder setStatus(Status value)
An optional final status for this span.
.google.rpc.Status status = 11;
public Span.Builder setStatus(Status.Builder builderForValue)
An optional final status for this span.
.google.rpc.Status status = 11;
public Span.Builder mergeStatus(Status value)
An optional final status for this span.
.google.rpc.Status status = 11;
public Span.Builder clearStatus()
An optional final status for this span.
.google.rpc.Status status = 11;
public Status.Builder getStatusBuilder()
An optional final status for this span.
.google.rpc.Status status = 11;
public StatusOrBuilder getStatusOrBuilder()
An optional final status for this span.
.google.rpc.Status status = 11;
getStatusOrBuilder
in interface SpanOrBuilder
public boolean hasSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
hasSameProcessAsParentSpan
in interface SpanOrBuilder
public BoolValue getSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
getSameProcessAsParentSpan
in interface SpanOrBuilder
public Span.Builder setSameProcessAsParentSpan(BoolValue value)
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
public Span.Builder setSameProcessAsParentSpan(BoolValue.Builder builderForValue)
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
public Span.Builder mergeSameProcessAsParentSpan(BoolValue value)
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
public Span.Builder clearSameProcessAsParentSpan()
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
public BoolValue.Builder getSameProcessAsParentSpanBuilder()
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
public BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder()
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
.google.protobuf.BoolValue same_process_as_parent_span = 12;
getSameProcessAsParentSpanOrBuilder
in interface SpanOrBuilder
public boolean hasChildSpanCount()
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
hasChildSpanCount
in interface SpanOrBuilder
public Int32Value getChildSpanCount()
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
getChildSpanCount
in interface SpanOrBuilder
public Span.Builder setChildSpanCount(Int32Value value)
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
public Span.Builder setChildSpanCount(Int32Value.Builder builderForValue)
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
public Span.Builder mergeChildSpanCount(Int32Value value)
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
public Span.Builder clearChildSpanCount()
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
public Int32Value.Builder getChildSpanCountBuilder()
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
public Int32ValueOrBuilder getChildSpanCountOrBuilder()
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
.google.protobuf.Int32Value child_span_count = 13;
getChildSpanCountOrBuilder
in interface SpanOrBuilder
public final Span.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Span.Builder>
public final Span.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Span.Builder>