public final class Span extends 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 Cloud Trace API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Span() |
| Modifier and Type | Method and Description |
|---|---|
Span |
clone() |
Attributes |
getAttributes()
A set of attributes on the span.
|
Integer |
getChildSpanCount()
Optional.
|
TruncatableString |
getDisplayName()
Required.
|
String |
getEndTime()
Required.
|
Links |
getLinks()
Links associated with the span.
|
String |
getName()
Required.
|
String |
getParentSpanId()
The [SPAN_ID] of this span's parent span.
|
Boolean |
getSameProcessAsParentSpan()
Optional.
|
String |
getSpanId()
Required.
|
String |
getSpanKind()
Optional.
|
StackTrace |
getStackTrace()
Stack trace captured at the start of the span.
|
String |
getStartTime()
Required.
|
Status |
getStatus()
Optional.
|
TimeEvents |
getTimeEvents()
A set of time events.
|
Span |
set(String fieldName,
Object value) |
Span |
setAttributes(Attributes attributes)
A set of attributes on the span.
|
Span |
setChildSpanCount(Integer childSpanCount)
Optional.
|
Span |
setDisplayName(TruncatableString displayName)
Required.
|
Span |
setEndTime(String endTime)
Required.
|
Span |
setLinks(Links links)
Links associated with the span.
|
Span |
setName(String name)
Required.
|
Span |
setParentSpanId(String parentSpanId)
The [SPAN_ID] of this span's parent span.
|
Span |
setSameProcessAsParentSpan(Boolean sameProcessAsParentSpan)
Optional.
|
Span |
setSpanId(String spanId)
Required.
|
Span |
setSpanKind(String spanKind)
Optional.
|
Span |
setStackTrace(StackTrace stackTrace)
Stack trace captured at the start of the span.
|
Span |
setStartTime(String startTime)
Required.
|
Span |
setStatus(Status status)
Optional.
|
Span |
setTimeEvents(TimeEvents timeEvents)
A set of time events.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Attributes getAttributes()
null for nonepublic Span setAttributes(Attributes attributes)
attributes - attributes or null for nonepublic Integer getChildSpanCount()
null for nonepublic Span setChildSpanCount(Integer childSpanCount)
childSpanCount - childSpanCount or null for nonepublic TruncatableString getDisplayName()
null for nonepublic Span setDisplayName(TruncatableString displayName)
displayName - displayName or null for nonepublic String getEndTime()
null for nonepublic Span setEndTime(String endTime)
endTime - endTime or null for nonepublic Links getLinks()
null for nonepublic Span setLinks(Links links)
links - links or null for nonepublic String getName()
null for nonepublic Span setName(String name)
name - name or null for nonepublic String getParentSpanId()
null for nonepublic Span setParentSpanId(String parentSpanId)
parentSpanId - parentSpanId or null for nonepublic Boolean getSameProcessAsParentSpan()
null for nonepublic Span setSameProcessAsParentSpan(Boolean sameProcessAsParentSpan)
sameProcessAsParentSpan - sameProcessAsParentSpan or null for nonepublic String getSpanId()
null for nonepublic Span setSpanId(String spanId)
spanId - spanId or null for nonepublic String getSpanKind()
null for nonepublic Span setSpanKind(String spanKind)
spanKind - spanKind or null for nonepublic StackTrace getStackTrace()
null for nonepublic Span setStackTrace(StackTrace stackTrace)
stackTrace - stackTrace or null for nonepublic String getStartTime()
null for nonepublic Span setStartTime(String startTime)
startTime - startTime or null for nonepublic Status getStatus()
null for nonepublic Span setStatus(Status status)
status - status or null for nonepublic TimeEvents getTimeEvents()
null for nonepublic Span setTimeEvents(TimeEvents timeEvents)
timeEvents - timeEvents or null for nonepublic Span set(String fieldName, Object value)
set in class GenericJsonpublic Span clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.