google-cloud-trace 0.38.1 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/cloud/trace/v1/trace_service_client.rb +53 -53
- data/lib/google/cloud/trace/v1/trace_service_client_config.json +9 -9
- data/lib/google/cloud/trace/v2/trace_service_client.rb +48 -48
- data/lib/google/cloud/trace/v2/trace_service_client_config.json +9 -9
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e33b3f227223bc8e246afe2f95fc9245bc30136a9fbf28cfd8b737b8af9b8a35
|
|
4
|
+
data.tar.gz: 28bffbec871f6d5797e182f728c2892b320e7f789abd4cee56a0259fce3963c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5b0cf82ee196dea9c348bd699282d34fb48a8f42a5e625e4b15575aba956329964c2da59ddd3ebc1adcd00d1c899c19befe64251f0e53a1297a5fddaed87e50
|
|
7
|
+
data.tar.gz: 7f56421baaad496fc87501ca1f9e50dc158b8f532bd6826bd34b5a7304cec693f6cf1f5bfc46905c2a132a9f2f2725da613b28cc34cf98d40426a85a83b39db3
|
data/CHANGELOG.md
CHANGED
|
@@ -186,6 +186,14 @@ module Google
|
|
|
186
186
|
&Google::Devtools::Cloudtrace::V1::TraceService::Stub.method(:new)
|
|
187
187
|
)
|
|
188
188
|
|
|
189
|
+
@patch_traces = Google::Gax.create_api_call(
|
|
190
|
+
@trace_service_stub.method(:patch_traces),
|
|
191
|
+
defaults["patch_traces"],
|
|
192
|
+
exception_transformer: exception_transformer,
|
|
193
|
+
params_extractor: proc do |request|
|
|
194
|
+
{'project_id' => request.project_id}
|
|
195
|
+
end
|
|
196
|
+
)
|
|
189
197
|
@list_traces = Google::Gax.create_api_call(
|
|
190
198
|
@trace_service_stub.method(:list_traces),
|
|
191
199
|
defaults["list_traces"],
|
|
@@ -199,18 +207,55 @@ module Google
|
|
|
199
207
|
defaults["get_trace"],
|
|
200
208
|
exception_transformer: exception_transformer
|
|
201
209
|
)
|
|
202
|
-
@patch_traces = Google::Gax.create_api_call(
|
|
203
|
-
@trace_service_stub.method(:patch_traces),
|
|
204
|
-
defaults["patch_traces"],
|
|
205
|
-
exception_transformer: exception_transformer,
|
|
206
|
-
params_extractor: proc do |request|
|
|
207
|
-
{'project_id' => request.project_id}
|
|
208
|
-
end
|
|
209
|
-
)
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# Service calls
|
|
213
213
|
|
|
214
|
+
# Sends new traces to Stackdriver Trace or updates existing traces. If the ID
|
|
215
|
+
# of a trace that you send matches that of an existing trace, any fields
|
|
216
|
+
# in the existing trace and its spans are overwritten by the provided values,
|
|
217
|
+
# and any new fields provided are merged with the existing trace data. If the
|
|
218
|
+
# ID does not match, a new trace is created.
|
|
219
|
+
#
|
|
220
|
+
# @param project_id [String]
|
|
221
|
+
# Required. ID of the Cloud project where the trace data is stored.
|
|
222
|
+
# @param traces [Google::Devtools::Cloudtrace::V1::Traces | Hash]
|
|
223
|
+
# Required. The body of the message.
|
|
224
|
+
# A hash of the same form as `Google::Devtools::Cloudtrace::V1::Traces`
|
|
225
|
+
# can also be provided.
|
|
226
|
+
# @param options [Google::Gax::CallOptions]
|
|
227
|
+
# Overrides the default settings for this call, e.g, timeout,
|
|
228
|
+
# retries, etc.
|
|
229
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
|
230
|
+
# @yieldparam result []
|
|
231
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
232
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
|
233
|
+
# @example
|
|
234
|
+
# require "google/cloud/trace"
|
|
235
|
+
#
|
|
236
|
+
# trace_client = Google::Cloud::Trace.new(version: :v1)
|
|
237
|
+
#
|
|
238
|
+
# # TODO: Initialize `project_id`:
|
|
239
|
+
# project_id = ''
|
|
240
|
+
#
|
|
241
|
+
# # TODO: Initialize `traces`:
|
|
242
|
+
# traces = {}
|
|
243
|
+
# trace_client.patch_traces(project_id, traces)
|
|
244
|
+
|
|
245
|
+
def patch_traces \
|
|
246
|
+
project_id,
|
|
247
|
+
traces,
|
|
248
|
+
options: nil,
|
|
249
|
+
&block
|
|
250
|
+
req = {
|
|
251
|
+
project_id: project_id,
|
|
252
|
+
traces: traces
|
|
253
|
+
}.delete_if { |_, v| v.nil? }
|
|
254
|
+
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V1::PatchTracesRequest)
|
|
255
|
+
@patch_traces.call(req, options, &block)
|
|
256
|
+
nil
|
|
257
|
+
end
|
|
258
|
+
|
|
214
259
|
# Returns of a list of traces that match the specified filter conditions.
|
|
215
260
|
#
|
|
216
261
|
# @param project_id [String]
|
|
@@ -373,51 +418,6 @@ module Google
|
|
|
373
418
|
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V1::GetTraceRequest)
|
|
374
419
|
@get_trace.call(req, options, &block)
|
|
375
420
|
end
|
|
376
|
-
|
|
377
|
-
# Sends new traces to Stackdriver Trace or updates existing traces. If the ID
|
|
378
|
-
# of a trace that you send matches that of an existing trace, any fields
|
|
379
|
-
# in the existing trace and its spans are overwritten by the provided values,
|
|
380
|
-
# and any new fields provided are merged with the existing trace data. If the
|
|
381
|
-
# ID does not match, a new trace is created.
|
|
382
|
-
#
|
|
383
|
-
# @param project_id [String]
|
|
384
|
-
# Required. ID of the Cloud project where the trace data is stored.
|
|
385
|
-
# @param traces [Google::Devtools::Cloudtrace::V1::Traces | Hash]
|
|
386
|
-
# Required. The body of the message.
|
|
387
|
-
# A hash of the same form as `Google::Devtools::Cloudtrace::V1::Traces`
|
|
388
|
-
# can also be provided.
|
|
389
|
-
# @param options [Google::Gax::CallOptions]
|
|
390
|
-
# Overrides the default settings for this call, e.g, timeout,
|
|
391
|
-
# retries, etc.
|
|
392
|
-
# @yield [result, operation] Access the result along with the RPC operation
|
|
393
|
-
# @yieldparam result []
|
|
394
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
395
|
-
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
|
396
|
-
# @example
|
|
397
|
-
# require "google/cloud/trace"
|
|
398
|
-
#
|
|
399
|
-
# trace_client = Google::Cloud::Trace.new(version: :v1)
|
|
400
|
-
#
|
|
401
|
-
# # TODO: Initialize `project_id`:
|
|
402
|
-
# project_id = ''
|
|
403
|
-
#
|
|
404
|
-
# # TODO: Initialize `traces`:
|
|
405
|
-
# traces = {}
|
|
406
|
-
# trace_client.patch_traces(project_id, traces)
|
|
407
|
-
|
|
408
|
-
def patch_traces \
|
|
409
|
-
project_id,
|
|
410
|
-
traces,
|
|
411
|
-
options: nil,
|
|
412
|
-
&block
|
|
413
|
-
req = {
|
|
414
|
-
project_id: project_id,
|
|
415
|
-
traces: traces
|
|
416
|
-
}.delete_if { |_, v| v.nil? }
|
|
417
|
-
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V1::PatchTracesRequest)
|
|
418
|
-
@patch_traces.call(req, options, &block)
|
|
419
|
-
nil
|
|
420
|
-
end
|
|
421
421
|
end
|
|
422
422
|
end
|
|
423
423
|
end
|
|
@@ -11,28 +11,28 @@
|
|
|
11
11
|
"retry_params": {
|
|
12
12
|
"default": {
|
|
13
13
|
"initial_retry_delay_millis": 100,
|
|
14
|
-
"retry_delay_multiplier": 1.
|
|
15
|
-
"max_retry_delay_millis":
|
|
14
|
+
"retry_delay_multiplier": 1.2,
|
|
15
|
+
"max_retry_delay_millis": 1000,
|
|
16
16
|
"initial_rpc_timeout_millis": 20000,
|
|
17
|
-
"rpc_timeout_multiplier": 1.
|
|
18
|
-
"max_rpc_timeout_millis":
|
|
19
|
-
"total_timeout_millis":
|
|
17
|
+
"rpc_timeout_multiplier": 1.5,
|
|
18
|
+
"max_rpc_timeout_millis": 30000,
|
|
19
|
+
"total_timeout_millis": 45000
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"methods": {
|
|
23
|
-
"
|
|
23
|
+
"PatchTraces": {
|
|
24
24
|
"timeout_millis": 60000,
|
|
25
25
|
"retry_codes_name": "idempotent",
|
|
26
26
|
"retry_params_name": "default"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"ListTraces": {
|
|
29
29
|
"timeout_millis": 60000,
|
|
30
30
|
"retry_codes_name": "idempotent",
|
|
31
31
|
"retry_params_name": "default"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"GetTrace": {
|
|
34
34
|
"timeout_millis": 60000,
|
|
35
|
-
"retry_codes_name": "
|
|
35
|
+
"retry_codes_name": "idempotent",
|
|
36
36
|
"retry_params_name": "default"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -209,17 +209,17 @@ module Google
|
|
|
209
209
|
&Google::Devtools::Cloudtrace::V2::TraceService::Stub.method(:new)
|
|
210
210
|
)
|
|
211
211
|
|
|
212
|
-
@
|
|
213
|
-
@trace_service_stub.method(:
|
|
214
|
-
defaults["
|
|
212
|
+
@create_span = Google::Gax.create_api_call(
|
|
213
|
+
@trace_service_stub.method(:create_span),
|
|
214
|
+
defaults["create_span"],
|
|
215
215
|
exception_transformer: exception_transformer,
|
|
216
216
|
params_extractor: proc do |request|
|
|
217
217
|
{'name' => request.name}
|
|
218
218
|
end
|
|
219
219
|
)
|
|
220
|
-
@
|
|
221
|
-
@trace_service_stub.method(:
|
|
222
|
-
defaults["
|
|
220
|
+
@batch_write_spans = Google::Gax.create_api_call(
|
|
221
|
+
@trace_service_stub.method(:batch_write_spans),
|
|
222
|
+
defaults["batch_write_spans"],
|
|
223
223
|
exception_transformer: exception_transformer,
|
|
224
224
|
params_extractor: proc do |request|
|
|
225
225
|
{'name' => request.name}
|
|
@@ -229,48 +229,6 @@ module Google
|
|
|
229
229
|
|
|
230
230
|
# Service calls
|
|
231
231
|
|
|
232
|
-
# Sends new spans to new or existing traces. You cannot update
|
|
233
|
-
# existing spans.
|
|
234
|
-
#
|
|
235
|
-
# @param name [String]
|
|
236
|
-
# Required. The name of the project where the spans belong. The format is
|
|
237
|
-
# `projects/[PROJECT_ID]`.
|
|
238
|
-
# @param spans [Array<Google::Devtools::Cloudtrace::V2::Span | Hash>]
|
|
239
|
-
# Required. A list of new spans. The span names must not match existing
|
|
240
|
-
# spans, or the results are undefined.
|
|
241
|
-
# A hash of the same form as `Google::Devtools::Cloudtrace::V2::Span`
|
|
242
|
-
# can also be provided.
|
|
243
|
-
# @param options [Google::Gax::CallOptions]
|
|
244
|
-
# Overrides the default settings for this call, e.g, timeout,
|
|
245
|
-
# retries, etc.
|
|
246
|
-
# @yield [result, operation] Access the result along with the RPC operation
|
|
247
|
-
# @yieldparam result []
|
|
248
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
249
|
-
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
|
250
|
-
# @example
|
|
251
|
-
# require "google/cloud/trace"
|
|
252
|
-
#
|
|
253
|
-
# trace_client = Google::Cloud::Trace.new(version: :v2)
|
|
254
|
-
# formatted_name = Google::Cloud::Trace::V2::TraceServiceClient.project_path("[PROJECT]")
|
|
255
|
-
#
|
|
256
|
-
# # TODO: Initialize `spans`:
|
|
257
|
-
# spans = []
|
|
258
|
-
# trace_client.batch_write_spans(formatted_name, spans)
|
|
259
|
-
|
|
260
|
-
def batch_write_spans \
|
|
261
|
-
name,
|
|
262
|
-
spans,
|
|
263
|
-
options: nil,
|
|
264
|
-
&block
|
|
265
|
-
req = {
|
|
266
|
-
name: name,
|
|
267
|
-
spans: spans
|
|
268
|
-
}.delete_if { |_, v| v.nil? }
|
|
269
|
-
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V2::BatchWriteSpansRequest)
|
|
270
|
-
@batch_write_spans.call(req, options, &block)
|
|
271
|
-
nil
|
|
272
|
-
end
|
|
273
|
-
|
|
274
232
|
# Creates a new span.
|
|
275
233
|
#
|
|
276
234
|
# @param name [String]
|
|
@@ -405,6 +363,48 @@ module Google
|
|
|
405
363
|
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V2::Span)
|
|
406
364
|
@create_span.call(req, options, &block)
|
|
407
365
|
end
|
|
366
|
+
|
|
367
|
+
# Sends new spans to new or existing traces. You cannot update
|
|
368
|
+
# existing spans.
|
|
369
|
+
#
|
|
370
|
+
# @param name [String]
|
|
371
|
+
# Required. The name of the project where the spans belong. The format is
|
|
372
|
+
# `projects/[PROJECT_ID]`.
|
|
373
|
+
# @param spans [Array<Google::Devtools::Cloudtrace::V2::Span | Hash>]
|
|
374
|
+
# Required. A list of new spans. The span names must not match existing
|
|
375
|
+
# spans, or the results are undefined.
|
|
376
|
+
# A hash of the same form as `Google::Devtools::Cloudtrace::V2::Span`
|
|
377
|
+
# can also be provided.
|
|
378
|
+
# @param options [Google::Gax::CallOptions]
|
|
379
|
+
# Overrides the default settings for this call, e.g, timeout,
|
|
380
|
+
# retries, etc.
|
|
381
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
|
382
|
+
# @yieldparam result []
|
|
383
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
|
384
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
|
385
|
+
# @example
|
|
386
|
+
# require "google/cloud/trace"
|
|
387
|
+
#
|
|
388
|
+
# trace_client = Google::Cloud::Trace.new(version: :v2)
|
|
389
|
+
# formatted_name = Google::Cloud::Trace::V2::TraceServiceClient.project_path("[PROJECT]")
|
|
390
|
+
#
|
|
391
|
+
# # TODO: Initialize `spans`:
|
|
392
|
+
# spans = []
|
|
393
|
+
# trace_client.batch_write_spans(formatted_name, spans)
|
|
394
|
+
|
|
395
|
+
def batch_write_spans \
|
|
396
|
+
name,
|
|
397
|
+
spans,
|
|
398
|
+
options: nil,
|
|
399
|
+
&block
|
|
400
|
+
req = {
|
|
401
|
+
name: name,
|
|
402
|
+
spans: spans
|
|
403
|
+
}.delete_if { |_, v| v.nil? }
|
|
404
|
+
req = Google::Gax::to_proto(req, Google::Devtools::Cloudtrace::V2::BatchWriteSpansRequest)
|
|
405
|
+
@batch_write_spans.call(req, options, &block)
|
|
406
|
+
nil
|
|
407
|
+
end
|
|
408
408
|
end
|
|
409
409
|
end
|
|
410
410
|
end
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
"retry_params": {
|
|
12
12
|
"default": {
|
|
13
13
|
"initial_retry_delay_millis": 100,
|
|
14
|
-
"retry_delay_multiplier": 1.
|
|
15
|
-
"max_retry_delay_millis":
|
|
16
|
-
"initial_rpc_timeout_millis":
|
|
17
|
-
"rpc_timeout_multiplier": 1.
|
|
18
|
-
"max_rpc_timeout_millis":
|
|
19
|
-
"total_timeout_millis":
|
|
14
|
+
"retry_delay_multiplier": 1.2,
|
|
15
|
+
"max_retry_delay_millis": 1000,
|
|
16
|
+
"initial_rpc_timeout_millis": 30000,
|
|
17
|
+
"rpc_timeout_multiplier": 1.5,
|
|
18
|
+
"max_rpc_timeout_millis": 60000,
|
|
19
|
+
"total_timeout_millis": 120000
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"methods": {
|
|
23
|
-
"
|
|
23
|
+
"CreateSpan": {
|
|
24
24
|
"timeout_millis": 60000,
|
|
25
|
-
"retry_codes_name": "
|
|
25
|
+
"retry_codes_name": "idempotent",
|
|
26
26
|
"retry_params_name": "default"
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"BatchWriteSpans": {
|
|
29
29
|
"timeout_millis": 60000,
|
|
30
30
|
"retry_codes_name": "non_idempotent",
|
|
31
31
|
"retry_params_name": "default"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-trace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.38.
|
|
4
|
+
version: 0.38.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Azuma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|