public final class SpanContext
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 Stackdriver Monitoring 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 |
|---|
SpanContext() |
| Modifier and Type | Method and Description |
|---|---|
SpanContext |
clone() |
java.lang.String |
getSpanName()
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.
|
SpanContext |
set(java.lang.String fieldName,
java.lang.Object value) |
SpanContext |
setSpanName(java.lang.String spanName)
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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getSpanName()
null for nonepublic SpanContext setSpanName(java.lang.String spanName)
spanName - spanName or null for nonepublic SpanContext set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SpanContext clone()
clone in class com.google.api.client.json.GenericJson