From 287ba6fd94b18c76cb3c08d38e130704a42ee7b2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 00:57:42 +0000 Subject: [PATCH] feat: Automated regeneration of CloudTrace client --- clients/cloud_trace/lib/google_api/cloud_trace/v1/metadata.ex | 2 +- .../lib/google_api/cloud_trace/v1/model/trace_span.ex | 4 ++-- clients/cloud_trace/lib/google_api/cloud_trace/v2/metadata.ex | 2 +- .../lib/google_api/cloud_trace/v2/model/attributes.ex | 2 +- .../cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex | 2 +- .../lib/google_api/cloud_trace/v2/model/stack_frame.ex | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v1/metadata.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v1/metadata.ex index 7b5a009d25..14afc08596 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v1/metadata.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.CloudTrace.V1 do API client metadata for GoogleApi.CloudTrace.V1. """ - @discovery_revision "20220512" + @discovery_revision "20240301" def discovery_revision(), do: @discovery_revision end diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v1/model/trace_span.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v1/model/trace_span.ex index 77e49e9313..91ac0b6fc4 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v1/model/trace_span.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v1/model/trace_span.ex @@ -21,13 +21,13 @@ defmodule GoogleApi.CloudTrace.V1.Model.TraceSpan do ## Attributes - * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - End time of the span in nanoseconds from the UNIX epoch. + * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - End time of the span in seconds and nanoseconds from the UNIX epoch. * `kind` (*type:* `String.t`, *default:* `nil`) - 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. * `labels` (*type:* `map()`, *default:* `nil`) - 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` * `name` (*type:* `String.t`, *default:* `nil`) - 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. * `parentSpanId` (*type:* `String.t`, *default:* `nil`) - Optional. ID of the parent span, if any. * `spanId` (*type:* `String.t`, *default:* `nil`) - Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`. - * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Start time of the span in nanoseconds from the UNIX epoch. + * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Start time of the span in seconds and nanoseconds from the UNIX epoch. """ use GoogleApi.Gax.ModelBase diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v2/metadata.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v2/metadata.ex index c252c29e97..ab287d9d1e 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v2/metadata.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v2/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.CloudTrace.V2 do API client metadata for GoogleApi.CloudTrace.V2. """ - @discovery_revision "20220512" + @discovery_revision "20240301" def discovery_revision(), do: @discovery_revision end diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/attributes.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/attributes.ex index 621e3ffc43..0811a46ae7 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/attributes.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/attributes.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.CloudTrace.V2.Model.Attributes do ## Attributes - * `attributeMap` (*type:* `%{optional(String.t) => GoogleApi.CloudTrace.V2.Model.AttributeValue.t}`, *default:* `nil`) - A set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the boolean values `true` or `false`. For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "abc.com/myattribute": { "bool_value": false } + * `attributeMap` (*type:* `%{optional(String.t) => GoogleApi.CloudTrace.V2.Model.AttributeValue.t}`, *default:* `nil`) - A set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the boolean values `true` or `false`. For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "example.com/myattribute": { "bool_value": false } * `droppedAttributesCount` (*type:* `integer()`, *default:* `nil`) - The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid. """ diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex index 65254fe681..292b751821 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/span.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.CloudTrace.V2.Model.Span do @moduledoc """ - A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous—there might be gaps or overlaps between spans in a trace. + A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous. There might be gaps or overlaps between spans in a trace. ## Attributes diff --git a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/stack_frame.ex b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/stack_frame.ex index 81283ccbc8..08c2cd32ed 100644 --- a/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/stack_frame.ex +++ b/clients/cloud_trace/lib/google_api/cloud_trace/v2/model/stack_frame.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.CloudTrace.V2.Model.StackFrame do * `functionName` (*type:* `GoogleApi.CloudTrace.V2.Model.TruncatableString.t`, *default:* `nil`) - The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes). * `lineNumber` (*type:* `String.t`, *default:* `nil`) - The line number in `file_name` where the function call appears. * `loadModule` (*type:* `GoogleApi.CloudTrace.V2.Model.Module.t`, *default:* `nil`) - The binary module from where the code was loaded. - * `originalFunctionName` (*type:* `GoogleApi.CloudTrace.V2.Model.TruncatableString.t`, *default:* `nil`) - An un-mangled function name, if `function_name` is [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can be fully-qualified (up to 1024 bytes). + * `originalFunctionName` (*type:* `GoogleApi.CloudTrace.V2.Model.TruncatableString.t`, *default:* `nil`) - An un-mangled function name, if `function_name` is mangled. To get information about name mangling, run [this search](https://www.google.com/search?q=cxx+name+mangling). The name can be fully-qualified (up to 1024 bytes). * `sourceVersion` (*type:* `GoogleApi.CloudTrace.V2.Model.TruncatableString.t`, *default:* `nil`) - The version of the deployed source code (up to 128 bytes). """