blob: 387199a0201ba6dd8989b1c29381c35be44a17db [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></h1>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudtrace_v2.projects.traces.spans.html">spans()</a></code>
79</p>
80<p class="firstline">Returns the spans Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#batchWrite">batchWrite(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Sends new spans to new or existing traces. You cannot update</p>
85<h3>Method Details</h3>
86<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code class="details" id="batchWrite">batchWrite(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088 <pre>Sends new spans to new or existing traces. You cannot update
89existing spans.
Dan O'Mearadd494642020-05-01 07:42:23 -070090In this case, writing traces is not considered an active developer
91method since traces are machine generated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092
93Args:
94 name: string, Required. The name of the project where the spans belong. The format is
95`projects/[PROJECT_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070096 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 The object takes the form of:
98
99{ # The request message for the `BatchWriteSpans` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 &quot;spans&quot;: [ # Required. A list of new spans. The span names must not match existing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101 # spans, or the results are undefined.
102 { # A span represents a single operation within a trace. Spans can be
103 # nested to form a trace tree. Often, a trace contains a root span
104 # that describes the end-to-end latency, and one or more subspans for
105 # its sub-operations. A trace can also contain multiple root spans,
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 # or none at all. Spans do not need to be contiguous&amp;mdash;there may be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 # gaps or overlaps between spans in a trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;childSpanCount&quot;: 42, # Optional. The number of child spans that were generated while this span
109 # was active. If set, allows implementation to detect missing child spans.
110 &quot;sameProcessAsParentSpan&quot;: True or False, # Optional. Set this parameter to indicate whether this span is in
111 # the same process as its parent. If you do not set this parameter,
112 # Stackdriver Trace is unable to take advantage of this helpful
113 # information.
114 &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 -0700115 # different programming environments, including REST APIs and RPC APIs. It is
116 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
117 # three pieces of data: error code, error message, and error details.
118 #
119 # You can find out more about this error model and how to work with it in the
120 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &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 -0700122 # user-facing error message should be localized and sent in the
123 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &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 -0700125 # message types for APIs to use.
126 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128 },
129 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &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 -0700133 #
134 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
135 # it is a 32-character hexadecimal encoding of a 16-byte array.
136 #
137 # [SPAN_ID] is a unique identifier for a span within a trace; it
138 # is a 16-character hexadecimal encoding of an 8-byte array.
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;stackTrace&quot;: { # A call stack appearing in a trace. # Stack trace captured at the start of the span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;frame&quot;: [ # Stack frames in this call stack.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 { # Represents a single stack frame in a stack trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;lineNumber&quot;: &quot;A String&quot;, # The line number in `file_name` where the function call appears.
144 &quot;loadModule&quot;: { # Binary module. # The binary module from where the code was loaded.
145 &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 -0700146 # such as libc.so, sharedlib.so (up to 256 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
148 # value is 0, then the string was not shortened.
149 &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 -0700150 # bytes long and the limit of the string is 128 bytes, then
151 # `value` contains the first 128 bytes of the 500-byte string.
152 #
153 # Truncation always happens on a UTF8 character boundary. If there
154 # are multi-byte characters in the string, then the length of the
155 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 },
157 &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
158 # contents (up to 128 bytes).
159 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
162 # bytes long and the limit of the string is 128 bytes, then
163 # `value` contains the first 128 bytes of the 500-byte string.
164 #
165 # Truncation always happens on a UTF8 character boundary. If there
166 # are multi-byte characters in the string, then the length of the
167 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 },
169 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;columnNumber&quot;: &quot;A String&quot;, # The column number where the function call appears, if available.
171 # This is important in JavaScript because of its anonymous functions.
172 &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
173 # bytes).
174 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
175 # value is 0, then the string was not shortened.
176 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
177 # bytes long and the limit of the string is 128 bytes, then
178 # `value` contains the first 128 bytes of the 500-byte string.
179 #
180 # Truncation always happens on a UTF8 character boundary. If there
181 # are multi-byte characters in the string, then the length of the
182 # shortened string might be less than the size limit.
183 },
184 &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).
185 &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
188 # 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.
194 },
195 &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 -0700196 # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
197 # be fully-qualified (up to 1024 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
199 # value is 0, then the string was not shortened.
200 &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 -0700201 # bytes long and the limit of the string is 128 bytes, then
202 # `value` contains the first 128 bytes of the 500-byte string.
203 #
204 # Truncation always happens on a UTF8 character boundary. If there
205 # are multi-byte characters in the string, then the length of the
206 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 },
208 &quot;functionName&quot;: { # Represents a string that might be shortened to a specified length. # The fully-qualified name that uniquely identifies the function or
209 # method that is active in this frame (up to 1024 bytes).
210 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700211 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
213 # bytes long and the limit of the string is 128 bytes, then
214 # `value` contains the first 128 bytes of the 500-byte string.
215 #
216 # Truncation always happens on a UTF8 character boundary. If there
217 # are multi-byte characters in the string, then the length of the
218 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 },
220 },
221 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700222 &quot;droppedFramesCount&quot;: 42, # The number of stack frames that were dropped because there
223 # were too many stack frames.
224 # If this value is 0, then no stack frames were dropped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700226 &quot;stackTraceHashId&quot;: &quot;A String&quot;, # The hash ID is used to conserve network bandwidth for duplicate
227 # stack traces within a single trace.
228 #
229 # Often multiple spans will have identical stack traces.
230 # The first occurrence of a stack trace should contain both the
231 # `stackFrame` content and a value in `stackTraceHashId`.
232 #
233 # Subsequent spans within the same request can refer
234 # to that stack trace by only setting `stackTraceHashId`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
237 # then this field must be empty.
238 &quot;endTime&quot;: &quot;A String&quot;, # Required. The end time of the span. On the client side, this is the time kept by
239 # the local machine where the span execution ends. On the server side, this
240 # is the time when the server application handler stops running.
241 &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 -0700242 # two spans with the same name may be distinguished using `CLIENT` (caller)
243 # and `SERVER` (callee) to identify an RPC call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 &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 -0700245 # the local machine where the span execution starts. On the server side, this
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 # is the time when the server&#x27;s application handler starts running.
247 &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).
248 # Stackdriver Trace displays the description in the
249 # Google Cloud Platform Console.
250 # For example, the display name can be a qualified method name or a file name
251 # and a line number where the operation is called. A best practice is to use
252 # the same display name within an application and at the same call point.
253 # This makes it easier to correlate spans in different traces.
254 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
255 # value is 0, then the string was not shortened.
256 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
257 # bytes long and the limit of the string is 128 bytes, then
258 # `value` contains the first 128 bytes of the 500-byte string.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 # Truncation always happens on a UTF8 character boundary. If there
261 # are multi-byte characters in the string, then the length of the
262 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &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 -0700265 # events per span.
266 # on the span, consisting of either user-supplied key:value pairs, or
267 # details of a message sent/received between Spans.
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 &quot;droppedMessageEventsCount&quot;: 42, # The number of dropped message events in all the included time events.
269 # If the value is 0, then no message events were dropped.
270 &quot;timeEvent&quot;: [ # A collection of `TimeEvent`s.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 { # A time-stamped annotation or message event in the Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;annotation&quot;: { # Text annotation with a set of attributes. # Text annotation with a set of attributes.
273 &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
274 # the description is 256 bytes.
275 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
276 # value is 0, then the string was not shortened.
277 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
278 # bytes long and the limit of the string is 128 bytes, then
279 # `value` contains the first 128 bytes of the 500-byte string.
280 #
281 # Truncation always happens on a UTF8 character boundary. If there
282 # are multi-byte characters in the string, then the length of the
283 # shortened string might be less than the size limit.
284 },
285 &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 -0700286 # per Annotation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 # because their keys are too long or because there are too many attributes.
289 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &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 -0700291 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
292 # or the Boolean values `true` and `false`. For example:
293 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
295 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
296 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
297 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
298 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
299 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
300 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
301 # value is 0, then the string was not shortened.
302 &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 -0700303 # bytes long and the limit of the string is 128 bytes, then
304 # `value` contains the first 128 bytes of the 500-byte string.
305 #
306 # Truncation always happens on a UTF8 character boundary. If there
307 # are multi-byte characters in the string, then the length of the
308 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700311 },
312 },
313 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700315 &quot;messageEvent&quot;: { # An event describing a message sent/received between Spans. # An event describing a message sent/received between Spans.
316 &quot;id&quot;: &quot;A String&quot;, # An identifier for the MessageEvent&#x27;s message that can be used to match
317 # SENT and RECEIVED MessageEvents. It is recommended to be unique within
318 # a Span.
319 &quot;compressedSizeBytes&quot;: &quot;A String&quot;, # The number of compressed bytes sent or received. If missing assumed to
320 # be the same size as uncompressed.
321 &quot;uncompressedSizeBytes&quot;: &quot;A String&quot;, # The number of uncompressed bytes sent or received.
322 &quot;type&quot;: &quot;A String&quot;, # Type of MessageEvent. Indicates whether the message was sent or
323 # received.
324 },
325 &quot;time&quot;: &quot;A String&quot;, # The timestamp indicating the time the event occurred.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 },
327 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700328 &quot;droppedAnnotationsCount&quot;: 42, # The number of dropped annotations in all the included time events.
329 # If the value is 0, then no annotations were dropped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700330 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700331 &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.
332 # in the same or different trace.
333 &quot;link&quot;: [ # A collection of links.
334 { # A pointer from the current span to another span in the same trace or in a
335 # different trace. For example, this can be used in batching operations,
336 # where a single batch handler processes multiple requests from different
337 # traces or when the handler receives a request from a different project.
338 &quot;type&quot;: &quot;A String&quot;, # The relationship of the current span relative to the linked span.
339 &quot;traceId&quot;: &quot;A String&quot;, # The [TRACE_ID] for a trace within a project.
340 &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
341 # link.
342 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
343 # because their keys are too long or because there are too many attributes.
344 # If this value is 0 then all attributes are valid.
345 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
346 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
347 # or the Boolean values `true` and `false`. For example:
348 #
349 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
350 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
351 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
352 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
353 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
354 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
355 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
356 # value is 0, then the string was not shortened.
357 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
358 # bytes long and the limit of the string is 128 bytes, then
359 # `value` contains the first 128 bytes of the 500-byte string.
360 #
361 # Truncation always happens on a UTF8 character boundary. If there
362 # are multi-byte characters in the string, then the length of the
363 # shortened string might be less than the size limit.
364 },
365 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
366 },
367 },
368 },
369 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] for a span within a trace.
370 },
371 ],
372 &quot;droppedLinksCount&quot;: 42, # The number of dropped links after the maximum size was enforced. If
373 # this value is 0, then no links were dropped.
374 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700375 &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
376 # span.
377 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
378 # because their keys are too long or because there are too many attributes.
379 # If this value is 0 then all attributes are valid.
380 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
381 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
382 # or the Boolean values `true` and `false`. For example:
383 #
384 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
385 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
386 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
387 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
388 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
389 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
390 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
391 # value is 0, then the string was not shortened.
392 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
393 # bytes long and the limit of the string is 128 bytes, then
394 # `value` contains the first 128 bytes of the 500-byte string.
395 #
396 # Truncation always happens on a UTF8 character boundary. If there
397 # are multi-byte characters in the string, then the length of the
398 # shortened string might be less than the size limit.
399 },
400 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
401 },
402 },
403 },
404 &quot;spanId&quot;: &quot;A String&quot;, # Required. The [SPAN_ID] portion of the span&#x27;s resource name.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 },
406 ],
407 }
408
409 x__xgafv: string, V1 error format.
410 Allowed values
411 1 - v1 error format
412 2 - v2 error format
413
414Returns:
415 An object of the form:
416
417 { # A generic empty message that you can re-use to avoid defining duplicated
418 # empty messages in your APIs. A typical example is to use it as the request
419 # or the response type of an API method. For instance:
420 #
421 # service Foo {
422 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
423 # }
424 #
425 # The JSON representation for `Empty` is empty JSON object `{}`.
426 }</pre>
427</div>
428
429</body></html>