public static final class TraceSpan.Builder extends GeneratedMessageV3.Builder<TraceSpan.Builder> implements TraceSpanOrBuilder
A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. There may be gaps between spans in a trace.Protobuf type
google.devtools.cloudtrace.v1.TraceSpan| Modifier and Type | Method and Description |
|---|---|
TraceSpan.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TraceSpan |
build() |
TraceSpan |
buildPartial() |
TraceSpan.Builder |
clear() |
TraceSpan.Builder |
clearEndTime()
End time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
clearField(Descriptors.FieldDescriptor field) |
TraceSpan.Builder |
clearKind()
Distinguishes between spans generated in a particular context.
|
TraceSpan.Builder |
clearLabels() |
TraceSpan.Builder |
clearName()
Name of the span.
|
TraceSpan.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
TraceSpan.Builder |
clearParentSpanId()
ID of the parent span, if any.
|
TraceSpan.Builder |
clearSpanId()
Identifier for the span.
|
TraceSpan.Builder |
clearStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
clone() |
boolean |
containsLabels(java.lang.String key)
Collection of labels associated with the span.
|
TraceSpan |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getEndTime()
End time of the span in nanoseconds from the UNIX epoch.
|
Timestamp.Builder |
getEndTimeBuilder()
End time of the span in nanoseconds from the UNIX epoch.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
End time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.SpanKind |
getKind()
Distinguishes between spans generated in a particular context.
|
int |
getKindValue()
Distinguishes between spans generated in a particular context.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Collection of labels associated with the span.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
Collection of labels associated with the span.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Collection of labels associated with the span.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
Collection of labels associated with the span.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
java.lang.String |
getName()
Name of the span.
|
ByteString |
getNameBytes()
Name of the span.
|
long |
getParentSpanId()
ID of the parent span, if any.
|
long |
getSpanId()
Identifier for the span.
|
Timestamp |
getStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
|
Timestamp.Builder |
getStartTimeBuilder()
Start time of the span in nanoseconds from the UNIX epoch.
|
TimestampOrBuilder |
getStartTimeOrBuilder()
Start time of the span in nanoseconds from the UNIX epoch.
|
boolean |
hasEndTime()
End time of the span in nanoseconds from the UNIX epoch.
|
boolean |
hasStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
TraceSpan.Builder |
mergeEndTime(Timestamp value)
End time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
TraceSpan.Builder |
mergeFrom(Message other) |
TraceSpan.Builder |
mergeFrom(TraceSpan other) |
TraceSpan.Builder |
mergeStartTime(Timestamp value)
Start time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
TraceSpan.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Collection of labels associated with the span.
|
TraceSpan.Builder |
putLabels(java.lang.String key,
java.lang.String value)
Collection of labels associated with the span.
|
TraceSpan.Builder |
removeLabels(java.lang.String key)
Collection of labels associated with the span.
|
TraceSpan.Builder |
setEndTime(Timestamp.Builder builderForValue)
End time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
setEndTime(Timestamp value)
End time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TraceSpan.Builder |
setKind(TraceSpan.SpanKind value)
Distinguishes between spans generated in a particular context.
|
TraceSpan.Builder |
setKindValue(int value)
Distinguishes between spans generated in a particular context.
|
TraceSpan.Builder |
setName(java.lang.String value)
Name of the span.
|
TraceSpan.Builder |
setNameBytes(ByteString value)
Name of the span.
|
TraceSpan.Builder |
setParentSpanId(long value)
ID of the parent span, if any.
|
TraceSpan.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TraceSpan.Builder |
setSpanId(long value)
Identifier for the span.
|
TraceSpan.Builder |
setStartTime(Timestamp.Builder builderForValue)
Start time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
setStartTime(Timestamp value)
Start time of the span in nanoseconds from the UNIX epoch.
|
TraceSpan.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<TraceSpan.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<TraceSpan.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TraceSpan.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TraceSpan build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TraceSpan buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TraceSpan.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TraceSpan.Builder>public TraceSpan.Builder mergeFrom(TraceSpan other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TraceSpan.Builder>public TraceSpan.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TraceSpan.Builder>java.io.IOExceptionpublic long getSpanId()
Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace.
fixed64 span_id = 1;getSpanId in interface TraceSpanOrBuilderpublic TraceSpan.Builder setSpanId(long value)
Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace.
fixed64 span_id = 1;public TraceSpan.Builder clearSpanId()
Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace.
fixed64 span_id = 1;public int getKindValue()
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
.google.devtools.cloudtrace.v1.TraceSpan.SpanKind kind = 2;getKindValue in interface TraceSpanOrBuilderpublic TraceSpan.Builder setKindValue(int value)
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
.google.devtools.cloudtrace.v1.TraceSpan.SpanKind kind = 2;public TraceSpan.SpanKind getKind()
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
.google.devtools.cloudtrace.v1.TraceSpan.SpanKind kind = 2;getKind in interface TraceSpanOrBuilderpublic TraceSpan.Builder setKind(TraceSpan.SpanKind value)
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
.google.devtools.cloudtrace.v1.TraceSpan.SpanKind kind = 2;public TraceSpan.Builder clearKind()
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
.google.devtools.cloudtrace.v1.TraceSpan.SpanKind kind = 2;public java.lang.String getName()
Name of the span. Must be less than 128 bytes. The span name is sanitized
and displayed in the Stackdriver Trace tool in the
{% dynamic print site_values.console_name %}.
The name may be a method name or some other per-call site name.
For the same executable and the same call point, a best practice is
to use a consistent name, which makes it easier to correlate
cross-trace spans.
string name = 3;getName in interface TraceSpanOrBuilderpublic ByteString getNameBytes()
Name of the span. Must be less than 128 bytes. The span name is sanitized
and displayed in the Stackdriver Trace tool in the
{% dynamic print site_values.console_name %}.
The name may be a method name or some other per-call site name.
For the same executable and the same call point, a best practice is
to use a consistent name, which makes it easier to correlate
cross-trace spans.
string name = 3;getNameBytes in interface TraceSpanOrBuilderpublic TraceSpan.Builder setName(java.lang.String value)
Name of the span. Must be less than 128 bytes. The span name is sanitized
and displayed in the Stackdriver Trace tool in the
{% dynamic print site_values.console_name %}.
The name may be a method name or some other per-call site name.
For the same executable and the same call point, a best practice is
to use a consistent name, which makes it easier to correlate
cross-trace spans.
string name = 3;public TraceSpan.Builder clearName()
Name of the span. Must be less than 128 bytes. The span name is sanitized
and displayed in the Stackdriver Trace tool in the
{% dynamic print site_values.console_name %}.
The name may be a method name or some other per-call site name.
For the same executable and the same call point, a best practice is
to use a consistent name, which makes it easier to correlate
cross-trace spans.
string name = 3;public TraceSpan.Builder setNameBytes(ByteString value)
Name of the span. Must be less than 128 bytes. The span name is sanitized
and displayed in the Stackdriver Trace tool in the
{% dynamic print site_values.console_name %}.
The name may be a method name or some other per-call site name.
For the same executable and the same call point, a best practice is
to use a consistent name, which makes it easier to correlate
cross-trace spans.
string name = 3;public boolean hasStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;hasStartTime in interface TraceSpanOrBuilderpublic Timestamp getStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;getStartTime in interface TraceSpanOrBuilderpublic TraceSpan.Builder setStartTime(Timestamp value)
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;public TraceSpan.Builder setStartTime(Timestamp.Builder builderForValue)
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;public TraceSpan.Builder mergeStartTime(Timestamp value)
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;public TraceSpan.Builder clearStartTime()
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;public Timestamp.Builder getStartTimeBuilder()
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;public TimestampOrBuilder getStartTimeOrBuilder()
Start time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp start_time = 4;getStartTimeOrBuilder in interface TraceSpanOrBuilderpublic boolean hasEndTime()
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;hasEndTime in interface TraceSpanOrBuilderpublic Timestamp getEndTime()
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;getEndTime in interface TraceSpanOrBuilderpublic TraceSpan.Builder setEndTime(Timestamp value)
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;public TraceSpan.Builder setEndTime(Timestamp.Builder builderForValue)
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;public TraceSpan.Builder mergeEndTime(Timestamp value)
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;public TraceSpan.Builder clearEndTime()
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;public Timestamp.Builder getEndTimeBuilder()
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;public TimestampOrBuilder getEndTimeOrBuilder()
End time of the span in nanoseconds from the UNIX epoch.
.google.protobuf.Timestamp end_time = 5;getEndTimeOrBuilder in interface TraceSpanOrBuilderpublic long getParentSpanId()
ID of the parent span, if any. Optional.
fixed64 parent_span_id = 6;getParentSpanId in interface TraceSpanOrBuilderpublic TraceSpan.Builder setParentSpanId(long value)
ID of the parent span, if any. Optional.
fixed64 parent_span_id = 6;public TraceSpan.Builder clearParentSpanId()
ID of the parent span, if any. Optional.
fixed64 parent_span_id = 6;public int getLabelsCount()
TraceSpanOrBuilderCollection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;getLabelsCount in interface TraceSpanOrBuilderpublic boolean containsLabels(java.lang.String key)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;containsLabels in interface TraceSpanOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface TraceSpanOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;getLabelsMap in interface TraceSpanOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;getLabelsOrDefault in interface TraceSpanOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;getLabelsOrThrow in interface TraceSpanOrBuilderpublic TraceSpan.Builder clearLabels()
public TraceSpan.Builder removeLabels(java.lang.String key)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public TraceSpan.Builder putLabels(java.lang.String key, java.lang.String value)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;public TraceSpan.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
map<string, string> labels = 7;public final TraceSpan.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TraceSpan.Builder>public final TraceSpan.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TraceSpan.Builder>