blob: f173496e6d6a5a40508d1c47e2fb953ad4e016b3 [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;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
109 # span.
110 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
111 # because their keys are too long or because there are too many attributes.
112 # If this value is 0 then all attributes are valid.
113 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
114 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
115 # or the Boolean values `true` and `false`. For example:
116 #
117 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
118 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
119 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
120 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
121 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
122 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
123 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
124 # value is 0, then the string was not shortened.
125 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
126 # bytes long and the limit of the string is 128 bytes, then
127 # `value` contains the first 128 bytes of the 500-byte string.
128 #
129 # Truncation always happens on a UTF8 character boundary. If there
130 # are multi-byte characters in the string, then the length of the
131 # shortened string might be less than the size limit.
132 },
133 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
134 },
135 },
136 },
137 &quot;spanId&quot;: &quot;A String&quot;, # Required. The [SPAN_ID] portion of the span&#x27;s resource name.
138 &quot;childSpanCount&quot;: 42, # Optional. The number of child spans that were generated while this span
139 # was active. If set, allows implementation to detect missing child spans.
140 &quot;sameProcessAsParentSpan&quot;: True or False, # Optional. Set this parameter to indicate whether this span is in
141 # the same process as its parent. If you do not set this parameter,
142 # Stackdriver Trace is unable to take advantage of this helpful
143 # information.
144 &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 -0700145 # different programming environments, including REST APIs and RPC APIs. It is
146 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
147 # three pieces of data: error code, error message, and error details.
148 #
149 # You can find out more about this error model and how to work with it in the
150 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
152 &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 -0700153 # user-facing error message should be localized and sent in the
154 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &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 -0700156 # message types for APIs to use.
157 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 },
160 ],
161 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &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 -0700163 #
164 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
165 # it is a 32-character hexadecimal encoding of a 16-byte array.
166 #
167 # [SPAN_ID] is a unique identifier for a span within a trace; it
168 # is a 16-character hexadecimal encoding of an 8-byte array.
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;stackTrace&quot;: { # A call stack appearing in a trace. # Stack trace captured at the start of the span.
170 &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 -0700171 # stack traces within a single trace.
172 #
173 # Often multiple spans will have identical stack traces.
174 # The first occurrence of a stack trace should contain both the
175 # `stackFrame` content and a value in `stackTraceHashId`.
176 #
177 # Subsequent spans within the same request can refer
178 # to that stack trace by only setting `stackTraceHashId`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &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.
180 &quot;droppedFramesCount&quot;: 42, # The number of stack frames that were dropped because there
181 # were too many stack frames.
182 # If this value is 0, then no stack frames were dropped.
183 &quot;frame&quot;: [ # Stack frames in this call stack.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 { # Represents a single stack frame in a stack trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;lineNumber&quot;: &quot;A String&quot;, # The line number in `file_name` where the function call appears.
186 &quot;loadModule&quot;: { # Binary module. # The binary module from where the code was loaded.
187 &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 -0700188 # such as libc.so, sharedlib.so (up to 256 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
190 # value is 0, then the string was not shortened.
191 &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 -0700192 # bytes long and the limit of the string is 128 bytes, then
193 # `value` contains the first 128 bytes of the 500-byte string.
194 #
195 # Truncation always happens on a UTF8 character boundary. If there
196 # are multi-byte characters in the string, then the length of the
197 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 },
199 &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
200 # contents (up to 128 bytes).
201 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700202 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
204 # bytes long and the limit of the string is 128 bytes, then
205 # `value` contains the first 128 bytes of the 500-byte string.
206 #
207 # Truncation always happens on a UTF8 character boundary. If there
208 # are multi-byte characters in the string, then the length of the
209 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 },
211 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;columnNumber&quot;: &quot;A String&quot;, # The column number where the function call appears, if available.
213 # This is important in JavaScript because of its anonymous functions.
214 &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
215 # bytes).
216 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
217 # value is 0, then the string was not shortened.
218 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
219 # bytes long and the limit of the string is 128 bytes, then
220 # `value` contains the first 128 bytes of the 500-byte string.
221 #
222 # Truncation always happens on a UTF8 character boundary. If there
223 # are multi-byte characters in the string, then the length of the
224 # shortened string might be less than the size limit.
225 },
226 &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).
227 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
228 # value is 0, then the string was not shortened.
229 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
230 # bytes long and the limit of the string is 128 bytes, then
231 # `value` contains the first 128 bytes of the 500-byte string.
232 #
233 # Truncation always happens on a UTF8 character boundary. If there
234 # are multi-byte characters in the string, then the length of the
235 # shortened string might be less than the size limit.
236 },
237 &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 -0700238 # [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
239 # be fully-qualified (up to 1024 bytes).
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
241 # value is 0, then the string was not shortened.
242 &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 -0700243 # bytes long and the limit of the string is 128 bytes, then
244 # `value` contains the first 128 bytes of the 500-byte string.
245 #
246 # Truncation always happens on a UTF8 character boundary. If there
247 # are multi-byte characters in the string, then the length of the
248 # shortened string might be less than the size limit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 },
250 &quot;functionName&quot;: { # Represents a string that might be shortened to a specified length. # The fully-qualified name that uniquely identifies the function or
251 # method that is active in this frame (up to 1024 bytes).
252 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 # value is 0, then the string was not shortened.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
255 # bytes long and the limit of the string is 128 bytes, then
256 # `value` contains the first 128 bytes of the 500-byte string.
257 #
258 # Truncation always happens on a UTF8 character boundary. If there
259 # are multi-byte characters in the string, then the length of the
260 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 },
262 },
263 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 },
265 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
267 # then this field must be empty.
268 &quot;endTime&quot;: &quot;A String&quot;, # Required. The end time of the span. On the client side, this is the time kept by
269 # the local machine where the span execution ends. On the server side, this
270 # is the time when the server application handler stops running.
271 &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 -0700272 # two spans with the same name may be distinguished using `CLIENT` (caller)
273 # and `SERVER` (callee) to identify an RPC call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &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 -0700275 # the local machine where the span execution starts. On the server side, this
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 # is the time when the server&#x27;s application handler starts running.
277 &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).
278 # Stackdriver Trace displays the description in the
279 # Google Cloud Platform Console.
280 # For example, the display name can be a qualified method name or a file name
281 # and a line number where the operation is called. A best practice is to use
282 # the same display name within an application and at the same call point.
283 # This makes it easier to correlate spans in different traces.
284 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
285 # value is 0, then the string was not shortened.
286 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
287 # bytes long and the limit of the string is 128 bytes, then
288 # `value` contains the first 128 bytes of the 500-byte string.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700289 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 # Truncation always happens on a UTF8 character boundary. If there
291 # are multi-byte characters in the string, then the length of the
292 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 &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 -0700295 # events per span.
296 # on the span, consisting of either user-supplied key:value pairs, or
297 # details of a message sent/received between Spans.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;droppedAnnotationsCount&quot;: 42, # The number of dropped annotations in all the included time events.
299 # If the value is 0, then no annotations were dropped.
300 &quot;droppedMessageEventsCount&quot;: 42, # The number of dropped message events in all the included time events.
301 # If the value is 0, then no message events were dropped.
302 &quot;timeEvent&quot;: [ # A collection of `TimeEvent`s.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 { # A time-stamped annotation or message event in the Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &quot;messageEvent&quot;: { # An event describing a message sent/received between Spans. # An event describing a message sent/received between Spans.
305 &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 -0700306 # received.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &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 -0700308 # SENT and RECEIVED MessageEvents. It is recommended to be unique within
309 # a Span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &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 -0700311 # be the same size as uncompressed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;uncompressedSizeBytes&quot;: &quot;A String&quot;, # The number of uncompressed bytes sent or received.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 &quot;time&quot;: &quot;A String&quot;, # The timestamp indicating the time the event occurred.
315 &quot;annotation&quot;: { # Text annotation with a set of attributes. # Text annotation with a set of attributes.
316 &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
317 # the description is 256 bytes.
318 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
319 # value is 0, then the string was not shortened.
320 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
321 # bytes long and the limit of the string is 128 bytes, then
322 # `value` contains the first 128 bytes of the 500-byte string.
323 #
324 # Truncation always happens on a UTF8 character boundary. If there
325 # are multi-byte characters in the string, then the length of the
326 # shortened string might be less than the size limit.
327 },
328 &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 -0700329 # per Annotation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 # because their keys are too long or because there are too many attributes.
332 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &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 -0700334 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
335 # or the Boolean values `true` and `false`. For example:
336 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
338 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
339 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
340 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
341 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
342 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
343 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
344 # value is 0, then the string was not shortened.
345 &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 -0700346 # bytes long and the limit of the string is 128 bytes, then
347 # `value` contains the first 128 bytes of the 500-byte string.
348 #
349 # Truncation always happens on a UTF8 character boundary. If there
350 # are multi-byte characters in the string, then the length of the
351 # shortened string might be less than the size limit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 },
355 },
356 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700358 },
359 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 &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.
362 # in the same or different trace.
363 &quot;link&quot;: [ # A collection of links.
364 { # A pointer from the current span to another span in the same trace or in a
365 # different trace. For example, this can be used in batching operations,
366 # where a single batch handler processes multiple requests from different
367 # traces or when the handler receives a request from a different project.
368 &quot;type&quot;: &quot;A String&quot;, # The relationship of the current span relative to the linked span.
369 &quot;traceId&quot;: &quot;A String&quot;, # The [TRACE_ID] for a trace within a project.
370 &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
371 # link.
372 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
373 # because their keys are too long or because there are too many attributes.
374 # If this value is 0 then all attributes are valid.
375 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
376 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
377 # or the Boolean values `true` and `false`. For example:
378 #
379 # &quot;/instance_id&quot;: { &quot;string_value&quot;: { &quot;value&quot;: &quot;my-instance&quot; } }
380 # &quot;/http/request_bytes&quot;: { &quot;int_value&quot;: 300 }
381 # &quot;abc.com/myattribute&quot;: { &quot;bool_value&quot;: false }
382 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
383 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
384 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
385 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
386 # value is 0, then the string was not shortened.
387 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
388 # bytes long and the limit of the string is 128 bytes, then
389 # `value` contains the first 128 bytes of the 500-byte string.
390 #
391 # Truncation always happens on a UTF8 character boundary. If there
392 # are multi-byte characters in the string, then the length of the
393 # shortened string might be less than the size limit.
394 },
395 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
396 },
397 },
398 },
399 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] for a span within a trace.
400 },
401 ],
402 &quot;droppedLinksCount&quot;: 42, # The number of dropped links after the maximum size was enforced. If
403 # this value is 0, then no links were dropped.
404 },
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>