blob: fc681bc1616fc9914ac79bd73f23a94710600aea [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="cloudtrace_v2.html">Cloud Trace API</a> . <a href="cloudtrace_v2.projects.html">projects</a> . <a href="cloudtrace_v2.projects.traces.html">traces</a> . <a href="cloudtrace_v2.projects.traces.spans.html">spans</a></h1>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#createSpan">createSpan(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a new span.</p>
80<h3>Method Details</h3>
81<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070082 <code class="details" id="createSpan">createSpan(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083 <pre>Creates a new span.
Dan O'Mearadd494642020-05-01 07:42:23 -070084In this case, writing traces is not considered an active developer
85method since traces are machine generated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87Args:
88 name: string, The resource name of the span in the following format:
89
90 projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
91it is a 32-character hexadecimal encoding of a 16-byte array.
92
93[SPAN_ID] is a unique identifier for a span within a trace; it
94is a 16-character hexadecimal encoding of an 8-byte array. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070095 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 The object takes the form of:
97
98{ # A span represents a single operation within a trace. Spans can be
99 # nested to form a trace tree. Often, a trace contains a root span
100 # that describes the end-to-end latency, and one or more subspans for
101 # its sub-operations. A trace can also contain multiple root spans,
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 # or none at all. Spans do not need to be contiguous&amp;mdash;there may be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 # gaps or overlaps between spans in a trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700104 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the span. You can have up to 32 attributes per
105 # span.
106 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
107 # because their keys are too long or because there are too many attributes.
108 # If this value is 0 then all attributes are valid.
109 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
110 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
111 # or the Boolean values `true` and `false`. For example:
112 #
113 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
114 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
115 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
116 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
117 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
118 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
119 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
120 # value is 0, then the string was not shortened.
121 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
122 # bytes long and the limit of the string is 128 bytes, then
123 # `value` contains the first 128 bytes of the 500-byte string.
124 #
125 # Truncation always happens on a UTF8 character boundary. If there
126 # are multi-byte characters in the string, then the length of the
127 # shortened string might be less than the size limit.
128 },
129 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
130 },
131 },
132 },
133 &quot;spanId&quot;: &quot;A String&quot;, # Required. The [SPAN_ID] portion of the span&#x27;s resource name.
134 &quot;childSpanCount&quot;: 42, # Optional. The number of child spans that were generated while this span
135 # was active. If set, allows implementation to detect missing child spans.
136 &quot;sameProcessAsParentSpan&quot;: True or False, # Optional. Set this parameter to indicate whether this span is in
137 # the same process as its parent. If you do not set this parameter,
138 # Stackdriver Trace is unable to take advantage of this helpful
139 # information.
140 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Optional. The final status for this span.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 # different programming environments, including REST APIs and RPC APIs. It is
142 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
143 # three pieces of data: error code, error message, and error details.
144 #
145 # You can find out more about this error model and how to work with it in the
146 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
148 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 # user-facing error message should be localized and sent in the
150 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 # message types for APIs to use.
153 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 },
156 ],
157 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;name&quot;: &quot;A String&quot;, # The resource name of the span in the following format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700159 #
160 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
161 # it is a 32-character hexadecimal encoding of a 16-byte array.
162 #
163 # [SPAN_ID] is a unique identifier for a span within a trace; it
164 # is a 16-character hexadecimal encoding of an 8-byte array.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;stackTrace&quot;: { # A call stack appearing in a trace. # Stack trace captured at the start of the span.
166 &quot;stackTraceHashId&quot;: &quot;A String&quot;, # The hash ID is used to conserve network bandwidth for duplicate
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # stack traces within a single trace.
168 #
169 # Often multiple spans will have identical stack traces.
170 # The first occurrence of a stack trace should contain both the
171 # `stackFrame` content and a value in `stackTraceHashId`.
172 #
173 # Subsequent spans within the same request can refer
174 # to that stack trace by only setting `stackTraceHashId`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;stackFrames&quot;: { # A collection of stack frames, which can be truncated. # Stack frames in this stack trace. A maximum of 128 frames are allowed.
176 &quot;droppedFramesCount&quot;: 42, # The number of stack frames that were dropped because there
177 # were too many stack frames.
178 # If this value is 0, then no stack frames were dropped.
179 &quot;frame&quot;: [ # Stack frames in this call stack.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 { # Represents a single stack frame in a stack trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;lineNumber&quot;: &quot;A String&quot;, # The line number in `file_name` where the function call appears.
182 &quot;loadModule&quot;: { # Binary module. # The binary module from where the code was loaded.
183 &quot;module&quot;: { # Represents a string that might be shortened to a specified length. # For example: main binary, kernel modules, and dynamic libraries
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 # such as libc.so, sharedlib.so (up to 256 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
186 # value is 0, then the string was not shortened.
187 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700188 # bytes long and the limit of the string is 128 bytes, then
189 # `value` contains the first 128 bytes of the 500-byte string.
190 #
191 # Truncation always happens on a UTF8 character boundary. If there
192 # are multi-byte characters in the string, then the length of the
193 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 },
195 &quot;buildId&quot;: { # Represents a string that might be shortened to a specified length. # A unique identifier for the module, usually a hash of its
196 # contents (up to 128 bytes).
197 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
200 # bytes long and the limit of the string is 128 bytes, then
201 # `value` contains the first 128 bytes of the 500-byte string.
202 #
203 # Truncation always happens on a UTF8 character boundary. If there
204 # are multi-byte characters in the string, then the length of the
205 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700206 },
207 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;columnNumber&quot;: &quot;A String&quot;, # The column number where the function call appears, if available.
209 # This is important in JavaScript because of its anonymous functions.
210 &quot;fileName&quot;: { # Represents a string that might be shortened to a specified length. # The name of the source file where the function call appears (up to 256
211 # bytes).
212 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
213 # value is 0, then the string was not shortened.
214 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
215 # bytes long and the limit of the string is 128 bytes, then
216 # `value` contains the first 128 bytes of the 500-byte string.
217 #
218 # Truncation always happens on a UTF8 character boundary. If there
219 # are multi-byte characters in the string, then the length of the
220 # shortened string might be less than the size limit.
221 },
222 &quot;sourceVersion&quot;: { # Represents a string that might be shortened to a specified length. # The version of the deployed source code (up to 128 bytes).
223 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
224 # value is 0, then the string was not shortened.
225 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
226 # bytes long and the limit of the string is 128 bytes, then
227 # `value` contains the first 128 bytes of the 500-byte string.
228 #
229 # Truncation always happens on a UTF8 character boundary. If there
230 # are multi-byte characters in the string, then the length of the
231 # shortened string might be less than the size limit.
232 },
233 &quot;originalFunctionName&quot;: { # Represents a string that might be shortened to a specified length. # An un-mangled function name, if `function_name` is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
235 # be fully-qualified (up to 1024 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
237 # value is 0, then the string was not shortened.
238 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239 # bytes long and the limit of the string is 128 bytes, then
240 # `value` contains the first 128 bytes of the 500-byte string.
241 #
242 # Truncation always happens on a UTF8 character boundary. If there
243 # are multi-byte characters in the string, then the length of the
244 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 },
246 &quot;functionName&quot;: { # Represents a string that might be shortened to a specified length. # The fully-qualified name that uniquely identifies the function or
247 # method that is active in this frame (up to 1024 bytes).
248 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700249 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
251 # bytes long and the limit of the string is 128 bytes, then
252 # `value` contains the first 128 bytes of the 500-byte string.
253 #
254 # Truncation always happens on a UTF8 character boundary. If there
255 # are multi-byte characters in the string, then the length of the
256 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
258 },
259 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700260 },
261 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
263 # then this field must be empty.
264 &quot;endTime&quot;: &quot;A String&quot;, # Required. The end time of the span. On the client side, this is the time kept by
265 # the local machine where the span execution ends. On the server side, this
266 # is the time when the server application handler stops running.
267 &quot;spanKind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example,
Dan O'Mearadd494642020-05-01 07:42:23 -0700268 # two spans with the same name may be distinguished using `CLIENT` (caller)
269 # and `SERVER` (callee) to identify an RPC call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;startTime&quot;: &quot;A String&quot;, # Required. The start time of the span. On the client side, this is the time kept by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 # the local machine where the span execution starts. On the server side, this
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 # is the time when the server&#x27;s application handler starts running.
273 &quot;displayName&quot;: { # Represents a string that might be shortened to a specified length. # Required. A description of the span&#x27;s operation (up to 128 bytes).
274 # Stackdriver Trace displays the description in the
275 # Google Cloud Platform Console.
276 # For example, the display name can be a qualified method name or a file name
277 # and a line number where the operation is called. A best practice is to use
278 # the same display name within an application and at the same call point.
279 # This makes it easier to correlate spans in different traces.
280 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
281 # value is 0, then the string was not shortened.
282 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
283 # bytes long and the limit of the string is 128 bytes, then
284 # `value` contains the first 128 bytes of the 500-byte string.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700285 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 # Truncation always happens on a UTF8 character boundary. If there
287 # are multi-byte characters in the string, then the length of the
288 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;timeEvents&quot;: { # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation # A set of time events. You can have up to 32 annotations and 128 message
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 # events per span.
292 # on the span, consisting of either user-supplied key:value pairs, or
293 # details of a message sent/received between Spans.
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &quot;droppedAnnotationsCount&quot;: 42, # The number of dropped annotations in all the included time events.
295 # If the value is 0, then no annotations were dropped.
296 &quot;droppedMessageEventsCount&quot;: 42, # The number of dropped message events in all the included time events.
297 # If the value is 0, then no message events were dropped.
298 &quot;timeEvent&quot;: [ # A collection of `TimeEvent`s.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 { # A time-stamped annotation or message event in the Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;messageEvent&quot;: { # An event describing a message sent/received between Spans. # An event describing a message sent/received between Spans.
301 &quot;type&quot;: &quot;A String&quot;, # Type of MessageEvent. Indicates whether the message was sent or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302 # received.
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;id&quot;: &quot;A String&quot;, # An identifier for the MessageEvent&#x27;s message that can be used to match
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700304 # SENT and RECEIVED MessageEvents. It is recommended to be unique within
305 # a Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;compressedSizeBytes&quot;: &quot;A String&quot;, # The number of compressed bytes sent or received. If missing assumed to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 # be the same size as uncompressed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;uncompressedSizeBytes&quot;: &quot;A String&quot;, # The number of uncompressed bytes sent or received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;time&quot;: &quot;A String&quot;, # The timestamp indicating the time the event occurred.
311 &quot;annotation&quot;: { # Text annotation with a set of attributes. # Text annotation with a set of attributes.
312 &quot;description&quot;: { # Represents a string that might be shortened to a specified length. # A user-supplied message describing the event. The maximum length for
313 # the description is 256 bytes.
314 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
315 # value is 0, then the string was not shortened.
316 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
317 # bytes long and the limit of the string is 128 bytes, then
318 # `value` contains the first 128 bytes of the 500-byte string.
319 #
320 # Truncation always happens on a UTF8 character boundary. If there
321 # are multi-byte characters in the string, then the length of the
322 # shortened string might be less than the size limit.
323 },
324 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the annotation. You can have up to 4 attributes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 # per Annotation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 # because their keys are too long or because there are too many attributes.
328 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
331 # or the Boolean values `true` and `false`. For example:
332 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
334 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
335 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
336 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
337 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
338 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
339 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
340 # value is 0, then the string was not shortened.
341 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 # bytes long and the limit of the string is 128 bytes, then
343 # `value` contains the first 128 bytes of the 500-byte string.
344 #
345 # Truncation always happens on a UTF8 character boundary. If there
346 # are multi-byte characters in the string, then the length of the
347 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 },
351 },
352 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 },
355 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;links&quot;: { # A collection of links, which are references from this span to a span # Links associated with the span. You can have up to 128 links per Span.
358 # in the same or different trace.
359 &quot;link&quot;: [ # A collection of links.
360 { # A pointer from the current span to another span in the same trace or in a
361 # different trace. For example, this can be used in batching operations,
362 # where a single batch handler processes multiple requests from different
363 # traces or when the handler receives a request from a different project.
364 &quot;type&quot;: &quot;A String&quot;, # The relationship of the current span relative to the linked span.
365 &quot;traceId&quot;: &quot;A String&quot;, # The [TRACE_ID] for a trace within a project.
366 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the link. You have have up to 32 attributes per
367 # link.
368 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
369 # because their keys are too long or because there are too many attributes.
370 # If this value is 0 then all attributes are valid.
371 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
372 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
373 # or the Boolean values `true` and `false`. For example:
374 #
375 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
376 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
377 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
378 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
379 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
380 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
381 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
382 # value is 0, then the string was not shortened.
383 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
384 # bytes long and the limit of the string is 128 bytes, then
385 # `value` contains the first 128 bytes of the 500-byte string.
386 #
387 # Truncation always happens on a UTF8 character boundary. If there
388 # are multi-byte characters in the string, then the length of the
389 # shortened string might be less than the size limit.
390 },
391 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
392 },
393 },
394 },
395 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] for a span within a trace.
396 },
397 ],
398 &quot;droppedLinksCount&quot;: 42, # The number of dropped links after the maximum size was enforced. If
399 # this value is 0, then no links were dropped.
400 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401}
402
403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
407
408Returns:
409 An object of the form:
410
411 { # A span represents a single operation within a trace. Spans can be
412 # nested to form a trace tree. Often, a trace contains a root span
413 # that describes the end-to-end latency, and one or more subspans for
414 # its sub-operations. A trace can also contain multiple root spans,
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 # or none at all. Spans do not need to be contiguous&amp;mdash;there may be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416 # gaps or overlaps between spans in a trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the span. You can have up to 32 attributes per
418 # span.
419 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
420 # because their keys are too long or because there are too many attributes.
421 # If this value is 0 then all attributes are valid.
422 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
423 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
424 # or the Boolean values `true` and `false`. For example:
425 #
426 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
427 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
428 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
429 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
430 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
431 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
432 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
433 # value is 0, then the string was not shortened.
434 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
435 # bytes long and the limit of the string is 128 bytes, then
436 # `value` contains the first 128 bytes of the 500-byte string.
437 #
438 # Truncation always happens on a UTF8 character boundary. If there
439 # are multi-byte characters in the string, then the length of the
440 # shortened string might be less than the size limit.
441 },
442 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
443 },
444 },
445 },
446 &quot;spanId&quot;: &quot;A String&quot;, # Required. The [SPAN_ID] portion of the span&#x27;s resource name.
447 &quot;childSpanCount&quot;: 42, # Optional. The number of child spans that were generated while this span
448 # was active. If set, allows implementation to detect missing child spans.
449 &quot;sameProcessAsParentSpan&quot;: True or False, # Optional. Set this parameter to indicate whether this span is in
450 # the same process as its parent. If you do not set this parameter,
451 # Stackdriver Trace is unable to take advantage of this helpful
452 # information.
453 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Optional. The final status for this span.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454 # different programming environments, including REST APIs and RPC APIs. It is
455 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
456 # three pieces of data: error code, error message, and error details.
457 #
458 # You can find out more about this error model and how to work with it in the
459 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
461 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 # user-facing error message should be localized and sent in the
463 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 # message types for APIs to use.
466 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700468 },
469 ],
470 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 &quot;name&quot;: &quot;A String&quot;, # The resource name of the span in the following format:
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 #
473 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
474 # it is a 32-character hexadecimal encoding of a 16-byte array.
475 #
476 # [SPAN_ID] is a unique identifier for a span within a trace; it
477 # is a 16-character hexadecimal encoding of an 8-byte array.
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 &quot;stackTrace&quot;: { # A call stack appearing in a trace. # Stack trace captured at the start of the span.
479 &quot;stackTraceHashId&quot;: &quot;A String&quot;, # The hash ID is used to conserve network bandwidth for duplicate
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480 # stack traces within a single trace.
481 #
482 # Often multiple spans will have identical stack traces.
483 # The first occurrence of a stack trace should contain both the
484 # `stackFrame` content and a value in `stackTraceHashId`.
485 #
486 # Subsequent spans within the same request can refer
487 # to that stack trace by only setting `stackTraceHashId`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 &quot;stackFrames&quot;: { # A collection of stack frames, which can be truncated. # Stack frames in this stack trace. A maximum of 128 frames are allowed.
489 &quot;droppedFramesCount&quot;: 42, # The number of stack frames that were dropped because there
490 # were too many stack frames.
491 # If this value is 0, then no stack frames were dropped.
492 &quot;frame&quot;: [ # Stack frames in this call stack.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700493 { # Represents a single stack frame in a stack trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;lineNumber&quot;: &quot;A String&quot;, # The line number in `file_name` where the function call appears.
495 &quot;loadModule&quot;: { # Binary module. # The binary module from where the code was loaded.
496 &quot;module&quot;: { # Represents a string that might be shortened to a specified length. # For example: main binary, kernel modules, and dynamic libraries
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 # such as libc.so, sharedlib.so (up to 256 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
499 # value is 0, then the string was not shortened.
500 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501 # bytes long and the limit of the string is 128 bytes, then
502 # `value` contains the first 128 bytes of the 500-byte string.
503 #
504 # Truncation always happens on a UTF8 character boundary. If there
505 # are multi-byte characters in the string, then the length of the
506 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 },
508 &quot;buildId&quot;: { # Represents a string that might be shortened to a specified length. # A unique identifier for the module, usually a hash of its
509 # contents (up to 128 bytes).
510 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
513 # bytes long and the limit of the string is 128 bytes, then
514 # `value` contains the first 128 bytes of the 500-byte string.
515 #
516 # Truncation always happens on a UTF8 character boundary. If there
517 # are multi-byte characters in the string, then the length of the
518 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519 },
520 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;columnNumber&quot;: &quot;A String&quot;, # The column number where the function call appears, if available.
522 # This is important in JavaScript because of its anonymous functions.
523 &quot;fileName&quot;: { # Represents a string that might be shortened to a specified length. # The name of the source file where the function call appears (up to 256
524 # bytes).
525 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
526 # value is 0, then the string was not shortened.
527 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
528 # bytes long and the limit of the string is 128 bytes, then
529 # `value` contains the first 128 bytes of the 500-byte string.
530 #
531 # Truncation always happens on a UTF8 character boundary. If there
532 # are multi-byte characters in the string, then the length of the
533 # shortened string might be less than the size limit.
534 },
535 &quot;sourceVersion&quot;: { # Represents a string that might be shortened to a specified length. # The version of the deployed source code (up to 128 bytes).
536 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
537 # value is 0, then the string was not shortened.
538 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
539 # bytes long and the limit of the string is 128 bytes, then
540 # `value` contains the first 128 bytes of the 500-byte string.
541 #
542 # Truncation always happens on a UTF8 character boundary. If there
543 # are multi-byte characters in the string, then the length of the
544 # shortened string might be less than the size limit.
545 },
546 &quot;originalFunctionName&quot;: { # Represents a string that might be shortened to a specified length. # An un-mangled function name, if `function_name` is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700547 # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
548 # be fully-qualified (up to 1024 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
550 # value is 0, then the string was not shortened.
551 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700552 # bytes long and the limit of the string is 128 bytes, then
553 # `value` contains the first 128 bytes of the 500-byte string.
554 #
555 # Truncation always happens on a UTF8 character boundary. If there
556 # are multi-byte characters in the string, then the length of the
557 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 },
559 &quot;functionName&quot;: { # Represents a string that might be shortened to a specified length. # The fully-qualified name that uniquely identifies the function or
560 # method that is active in this frame (up to 1024 bytes).
561 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700563 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
564 # bytes long and the limit of the string is 128 bytes, then
565 # `value` contains the first 128 bytes of the 500-byte string.
566 #
567 # Truncation always happens on a UTF8 character boundary. If there
568 # are multi-byte characters in the string, then the length of the
569 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700570 },
571 },
572 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 },
574 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
576 # then this field must be empty.
577 &quot;endTime&quot;: &quot;A String&quot;, # Required. The end time of the span. On the client side, this is the time kept by
578 # the local machine where the span execution ends. On the server side, this
579 # is the time when the server application handler stops running.
580 &quot;spanKind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example,
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 # two spans with the same name may be distinguished using `CLIENT` (caller)
582 # and `SERVER` (callee) to identify an RPC call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 &quot;startTime&quot;: &quot;A String&quot;, # Required. The start time of the span. On the client side, this is the time kept by
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 # the local machine where the span execution starts. On the server side, this
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 # is the time when the server&#x27;s application handler starts running.
586 &quot;displayName&quot;: { # Represents a string that might be shortened to a specified length. # Required. A description of the span&#x27;s operation (up to 128 bytes).
587 # Stackdriver Trace displays the description in the
588 # Google Cloud Platform Console.
589 # For example, the display name can be a qualified method name or a file name
590 # and a line number where the operation is called. A best practice is to use
591 # the same display name within an application and at the same call point.
592 # This makes it easier to correlate spans in different traces.
593 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
594 # value is 0, then the string was not shortened.
595 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
596 # bytes long and the limit of the string is 128 bytes, then
597 # `value` contains the first 128 bytes of the 500-byte string.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700598 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 # Truncation always happens on a UTF8 character boundary. If there
600 # are multi-byte characters in the string, then the length of the
601 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700602 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;timeEvents&quot;: { # A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation # A set of time events. You can have up to 32 annotations and 128 message
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700604 # events per span.
605 # on the span, consisting of either user-supplied key:value pairs, or
606 # details of a message sent/received between Spans.
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 &quot;droppedAnnotationsCount&quot;: 42, # The number of dropped annotations in all the included time events.
608 # If the value is 0, then no annotations were dropped.
609 &quot;droppedMessageEventsCount&quot;: 42, # The number of dropped message events in all the included time events.
610 # If the value is 0, then no message events were dropped.
611 &quot;timeEvent&quot;: [ # A collection of `TimeEvent`s.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700612 { # A time-stamped annotation or message event in the Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;messageEvent&quot;: { # An event describing a message sent/received between Spans. # An event describing a message sent/received between Spans.
614 &quot;type&quot;: &quot;A String&quot;, # Type of MessageEvent. Indicates whether the message was sent or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700615 # received.
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;id&quot;: &quot;A String&quot;, # An identifier for the MessageEvent&#x27;s message that can be used to match
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700617 # SENT and RECEIVED MessageEvents. It is recommended to be unique within
618 # a Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700619 &quot;compressedSizeBytes&quot;: &quot;A String&quot;, # The number of compressed bytes sent or received. If missing assumed to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700620 # be the same size as uncompressed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;uncompressedSizeBytes&quot;: &quot;A String&quot;, # The number of uncompressed bytes sent or received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700622 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 &quot;time&quot;: &quot;A String&quot;, # The timestamp indicating the time the event occurred.
624 &quot;annotation&quot;: { # Text annotation with a set of attributes. # Text annotation with a set of attributes.
625 &quot;description&quot;: { # Represents a string that might be shortened to a specified length. # A user-supplied message describing the event. The maximum length for
626 # the description is 256 bytes.
627 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
628 # value is 0, then the string was not shortened.
629 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
630 # bytes long and the limit of the string is 128 bytes, then
631 # `value` contains the first 128 bytes of the 500-byte string.
632 #
633 # Truncation always happens on a UTF8 character boundary. If there
634 # are multi-byte characters in the string, then the length of the
635 # shortened string might be less than the size limit.
636 },
637 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the annotation. You can have up to 4 attributes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700638 # per Annotation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700640 # because their keys are too long or because there are too many attributes.
641 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700643 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
644 # or the Boolean values `true` and `false`. For example:
645 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
647 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
648 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
649 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
650 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
651 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
652 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
653 # value is 0, then the string was not shortened.
654 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700655 # bytes long and the limit of the string is 128 bytes, then
656 # `value` contains the first 128 bytes of the 500-byte string.
657 #
658 # Truncation always happens on a UTF8 character boundary. If there
659 # are multi-byte characters in the string, then the length of the
660 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700663 },
664 },
665 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700666 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700667 },
668 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 &quot;links&quot;: { # A collection of links, which are references from this span to a span # Links associated with the span. You can have up to 128 links per Span.
671 # in the same or different trace.
672 &quot;link&quot;: [ # A collection of links.
673 { # A pointer from the current span to another span in the same trace or in a
674 # different trace. For example, this can be used in batching operations,
675 # where a single batch handler processes multiple requests from different
676 # traces or when the handler receives a request from a different project.
677 &quot;type&quot;: &quot;A String&quot;, # The relationship of the current span relative to the linked span.
678 &quot;traceId&quot;: &quot;A String&quot;, # The [TRACE_ID] for a trace within a project.
679 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the link. You have have up to 32 attributes per
680 # link.
681 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
682 # because their keys are too long or because there are too many attributes.
683 # If this value is 0 then all attributes are valid.
684 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
685 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
686 # or the Boolean values `true` and `false`. For example:
687 #
688 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
689 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
690 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
691 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
692 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
693 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
694 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
695 # value is 0, then the string was not shortened.
696 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
697 # bytes long and the limit of the string is 128 bytes, then
698 # `value` contains the first 128 bytes of the 500-byte string.
699 #
700 # Truncation always happens on a UTF8 character boundary. If there
701 # are multi-byte characters in the string, then the length of the
702 # shortened string might be less than the size limit.
703 },
704 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
705 },
706 },
707 },
708 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] for a span within a trace.
709 },
710 ],
711 &quot;droppedLinksCount&quot;: 42, # The number of dropped links after the maximum size was enforced. If
712 # this value is 0, then no links were dropped.
713 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700714 }</pre>
715</div>
716
717</body></html>