blob: c1fce359d5bb9526768321d1afb386758b587fe8 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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_v1.html">Cloud Trace API</a> . <a href="cloudtrace_v1.projects.html">projects</a> . <a href="cloudtrace_v1.projects.traces.html">traces</a></h1>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080081 <code><a href="#get">get(projectId, traceId, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets a single trace by its ID.</p>
83<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080084 <code><a href="#list">list(projectId, pageToken=None, view=None, filter=None, startTime=None, endTime=None, pageSize=None, orderBy=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="firstline">Returns of a list of traces that match the specified filter conditions.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080096 <code class="details" id="get">get(projectId, traceId, x__xgafv=None)</code>
97 <pre>Gets a single trace by its ID.
98
99Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 projectId: string, Required. ID of the Cloud project where the trace data is stored. (required)
101 traceId: string, Required. ID of the trace to return. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800102 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800106
107Returns:
108 An object of the form:
109
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 { # A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800111 &quot;projectId&quot;: &quot;A String&quot;, # Project ID of the Cloud project where the trace data is stored.
112 &quot;traceId&quot;: &quot;A String&quot;, # Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, `382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;spans&quot;: [ # Collection of spans in the trace.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 { # A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. There may be gaps between spans in a trace.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800115 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the span in nanoseconds from the UNIX epoch.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800116 &quot;parentSpanId&quot;: &quot;A String&quot;, # Optional. ID of the parent span, if any.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800117 &quot;kind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
118 &quot;spanId&quot;: &quot;A String&quot;, # Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`.
119 &quot;name&quot;: &quot;A String&quot;, # Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800120 &quot;endTime&quot;: &quot;A String&quot;, # End time of the span in nanoseconds from the UNIX epoch.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 &quot;labels&quot;: { # Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800123 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800124 },
125 ],
126 }</pre>
127</div>
128
129<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800130 <code class="details" id="list">list(projectId, pageToken=None, view=None, filter=None, startTime=None, endTime=None, pageSize=None, orderBy=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800131 <pre>Returns of a list of traces that match the specified filter conditions.
132
133Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700134 projectId: string, Required. ID of the Cloud project where the trace data is stored. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800135 pageToken: string, Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 view: string, Optional. Type of data returned for traces in the list. Default is `MINIMAL`.
137 Allowed values
138 VIEW_TYPE_UNSPECIFIED - Default is `MINIMAL` if unspecified.
139 MINIMAL - Minimal view of the trace record that contains only the project and trace IDs.
140 ROOTSPAN - Root span view of the trace record that returns the root spans along with the minimal trace data.
141 COMPLETE - Complete view of the trace record that contains the actual trace data. This is equivalent to calling the REST `get` or RPC `GetTrace` method using the ID of each listed trace.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 filter: string, Optional. A filter against labels for the request. By default, searches use prefix matching. To specify exact match, prepend a plus symbol (`+`) to the search term. Multiple terms are ANDed. Syntax: * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root span starts with `NAME_PREFIX`. * `+root:NAME` or `+NAME`: Return traces where any root span&#x27;s name is exactly `NAME`. * `span:NAME_PREFIX`: Return traces where any span starts with `NAME_PREFIX`. * `+span:NAME`: Return traces where any span&#x27;s name is exactly `NAME`. * `latency:DURATION`: Return traces whose overall latency is greater or equal to than `DURATION`. Accepted units are nanoseconds (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For example, `latency:24ms` returns traces whose overall latency is greater than or equal to 24 milliseconds. * `label:LABEL_KEY`: Return all traces containing the specified label key (exact match, case-sensitive) regardless of the key:value pair&#x27;s value (including empty values). * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified label key (exact match, case-sensitive) whose value starts with `VALUE_PREFIX`. Both a key and a value must be specified. * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair exactly matching the specified text. Both a key and a value must be specified. * `method:VALUE`: Equivalent to `/http/method:VALUE`. * `url:VALUE`: Equivalent to `/http/url:VALUE`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 startTime: string, Start of the time interval (inclusive) during which the trace data was collected from the application.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800144 endTime: string, End of the time interval (inclusive) during which the trace data was collected from the application.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800145 pageSize: integer, Optional. Maximum number of traces to return. If not specified or &lt;= 0, the implementation selects a reasonable value. The implementation may return fewer traces than the requested page size.
146 orderBy: string, Optional. Field used to sort the returned traces. Can be one of the following: * `trace_id` * `name` (`name` field of root span in the trace) * `duration` (difference between `end_time` and `start_time` fields of the root span) * `start` (`start_time` field of the root span) Descending order can be specified by appending `desc` to the sort field (for example, `name desc`). Only one sort field is permitted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800151
152Returns:
153 An object of the form:
154
155 { # The response message for the `ListTraces` method.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800156 &quot;nextPageToken&quot;: &quot;A String&quot;, # If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;traces&quot;: [ # List of trace records as specified by the view parameter.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700158 { # A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800159 &quot;projectId&quot;: &quot;A String&quot;, # Project ID of the Cloud project where the trace data is stored.
160 &quot;traceId&quot;: &quot;A String&quot;, # Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, `382d4f4c6b7bb2f4a972559d9085001d`. The numeric value should not be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;spans&quot;: [ # Collection of spans in the trace.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 { # A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. There may be gaps between spans in a trace.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800163 &quot;startTime&quot;: &quot;A String&quot;, # Start time of the span in nanoseconds from the UNIX epoch.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800164 &quot;parentSpanId&quot;: &quot;A String&quot;, # Optional. ID of the parent span, if any.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800165 &quot;kind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
166 &quot;spanId&quot;: &quot;A String&quot;, # Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`.
167 &quot;name&quot;: &quot;A String&quot;, # Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800168 &quot;endTime&quot;: &quot;A String&quot;, # End time of the span in nanoseconds from the UNIX epoch.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &quot;labels&quot;: { # Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g. `/db/mongodb/read_size`). * `short_host/path/key` for domain-specific keys (e.g. `foo.com/myproduct/bar`) Predefined labels include: * `/agent` * `/component` * `/error/message` * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800171 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800172 },
173 ],
174 },
175 ],
176 }</pre>
177</div>
178
179<div class="method">
180 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
181 <pre>Retrieves the next page of results.
182
183Args:
184 previous_request: The request for the previous page. (required)
185 previous_response: The response from the request for the previous page. (required)
186
187Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800189 page. Returns None if there are no more items in the collection.
190 </pre>
191</div>
192
193</body></html>