public final class TraceSpan
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Control API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
TraceSpan() |
Modifier and Type | Method and Description |
---|---|
TraceSpan |
clone() |
Attributes |
getAttributes()
A set of attributes on the span.
|
java.lang.Integer |
getChildSpanCount()
An optional number of child spans that were generated while this span was active.
|
TruncatableString |
getDisplayName()
A description of the span's operation (up to 128 bytes).
|
java.lang.String |
getEndTime()
The end time of 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 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.
|
java.lang.Boolean |
getSameProcessAsParentSpan()
(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.
|
java.lang.String |
getSpanKind()
Distinguishes between spans generated in a particular context.
|
java.lang.String |
getStartTime()
The start time of the span.
|
Status |
getStatus()
An optional final status for this span.
|
TraceSpan |
set(java.lang.String fieldName,
java.lang.Object value) |
TraceSpan |
setAttributes(Attributes attributes)
A set of attributes on the span.
|
TraceSpan |
setChildSpanCount(java.lang.Integer childSpanCount)
An optional number of child spans that were generated while this span was active.
|
TraceSpan |
setDisplayName(TruncatableString displayName)
A description of the span's operation (up to 128 bytes).
|
TraceSpan |
setEndTime(java.lang.String endTime)
The end time of the span.
|
TraceSpan |
setName(java.lang.String name)
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace
within a project; it is a 32-character hexadecimal encoding of a 16-byte array.
|
TraceSpan |
setParentSpanId(java.lang.String parentSpanId)
The [SPAN_ID] of this span's parent span.
|
TraceSpan |
setSameProcessAsParentSpan(java.lang.Boolean sameProcessAsParentSpan)
(Optional) Set this parameter to indicate whether this span is in the same process as its
parent.
|
TraceSpan |
setSpanId(java.lang.String spanId)
The [SPAN_ID] portion of the span's resource name.
|
TraceSpan |
setSpanKind(java.lang.String spanKind)
Distinguishes between spans generated in a particular context.
|
TraceSpan |
setStartTime(java.lang.String startTime)
The start time of the span.
|
TraceSpan |
setStatus(Status status)
An optional final status for this span.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Attributes getAttributes()
null
for nonepublic TraceSpan setAttributes(Attributes attributes)
attributes
- attributes or null
for nonepublic java.lang.Integer getChildSpanCount()
null
for nonepublic TraceSpan setChildSpanCount(java.lang.Integer childSpanCount)
childSpanCount
- childSpanCount or null
for nonepublic TruncatableString getDisplayName()
null
for nonepublic TraceSpan setDisplayName(TruncatableString displayName)
displayName
- displayName or null
for nonepublic java.lang.String getEndTime()
null
for nonepublic TraceSpan setEndTime(java.lang.String endTime)
endTime
- endTime or null
for nonepublic java.lang.String getName()
null
for nonepublic TraceSpan setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getParentSpanId()
null
for nonepublic TraceSpan setParentSpanId(java.lang.String parentSpanId)
parentSpanId
- parentSpanId or null
for nonepublic java.lang.Boolean getSameProcessAsParentSpan()
null
for nonepublic TraceSpan setSameProcessAsParentSpan(java.lang.Boolean sameProcessAsParentSpan)
sameProcessAsParentSpan
- sameProcessAsParentSpan or null
for nonepublic java.lang.String getSpanId()
null
for nonepublic TraceSpan setSpanId(java.lang.String spanId)
spanId
- spanId or null
for nonepublic java.lang.String getSpanKind()
null
for nonepublic TraceSpan setSpanKind(java.lang.String spanKind)
spanKind
- spanKind or null
for nonepublic java.lang.String getStartTime()
null
for nonepublic TraceSpan setStartTime(java.lang.String startTime)
startTime
- startTime or null
for nonepublic Status getStatus()
null
for nonepublic TraceSpan setStatus(Status status)
status
- status or null
for nonepublic TraceSpan set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TraceSpan clone()
clone
in class com.google.api.client.json.GenericJson