google-cloud-trace-v1 0.3.2 → 0.3.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6058eaca1038413cdf7d19ca27da0c4c565909b70b04a5e5422c789946bf5739
|
4
|
+
data.tar.gz: aa96c078e319be069eb945efb7a69396b227665da0e25b48bc936718f12e1eca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b0c16f7861bd869a94ee493e3bb803d7f6352caf3ec34a13b8996c316185014ad1d26a3084663cd068cb629065230049ba1b6c3168c28d957b70065572209a
|
7
|
+
data.tar.gz: 82d900b3d3c9958a22d4346cd48a09200ebce30f2b11f18f62e408d7d3ac32d17f45479fa7c5506ca2618e6d6f51dc54feeb3e079825ad03ef5d902483cb8f05
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::Trace::V1::TraceService::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all TraceService clients
|
49
|
+
# ::Google::Cloud::Trace::V1::TraceService::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -111,19 +110,15 @@ module Google
|
|
111
110
|
##
|
112
111
|
# Create a new TraceService client object.
|
113
112
|
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
# To create a new TraceService client with the default
|
117
|
-
# configuration:
|
118
|
-
#
|
119
|
-
# client = ::Google::Cloud::Trace::V1::TraceService::Client.new
|
113
|
+
# @example
|
120
114
|
#
|
121
|
-
#
|
122
|
-
#
|
115
|
+
# # Create a client using the default configuration
|
116
|
+
# client = ::Google::Cloud::Trace::V1::TraceService::Client.new
|
123
117
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
118
|
+
# # Create a client using a custom configuration
|
119
|
+
# client = ::Google::Cloud::Trace::V1::TraceService::Client.new do |config|
|
120
|
+
# config.timeout = 10.0
|
121
|
+
# end
|
127
122
|
#
|
128
123
|
# @yield [config] Configure the TraceService client.
|
129
124
|
# @yieldparam config [Client::Configuration]
|
@@ -143,10 +138,9 @@ module Google
|
|
143
138
|
|
144
139
|
# Create credentials
|
145
140
|
credentials = @config.credentials
|
146
|
-
# Use self-signed JWT if the
|
141
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
142
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.
|
149
|
-
@config.endpoint == Client.configure.endpoint &&
|
143
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
150
144
|
!@config.endpoint.split(".").first.include?("-")
|
151
145
|
credentials ||= Credentials.default scope: @config.scope,
|
152
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -283,7 +277,9 @@ module Google
|
|
283
277
|
options.apply_defaults timeout: @config.rpcs.list_traces.timeout,
|
284
278
|
metadata: metadata,
|
285
279
|
retry_policy: @config.rpcs.list_traces.retry_policy
|
286
|
-
|
280
|
+
|
281
|
+
options.apply_defaults timeout: @config.timeout,
|
282
|
+
metadata: @config.metadata,
|
287
283
|
retry_policy: @config.retry_policy
|
288
284
|
|
289
285
|
@trace_service_stub.call_rpc :list_traces, request, options: options do |response, operation|
|
@@ -353,7 +349,9 @@ module Google
|
|
353
349
|
options.apply_defaults timeout: @config.rpcs.get_trace.timeout,
|
354
350
|
metadata: metadata,
|
355
351
|
retry_policy: @config.rpcs.get_trace.retry_policy
|
356
|
-
|
352
|
+
|
353
|
+
options.apply_defaults timeout: @config.timeout,
|
354
|
+
metadata: @config.metadata,
|
357
355
|
retry_policy: @config.retry_policy
|
358
356
|
|
359
357
|
@trace_service_stub.call_rpc :get_trace, request, options: options do |response, operation|
|
@@ -425,7 +423,9 @@ module Google
|
|
425
423
|
options.apply_defaults timeout: @config.rpcs.patch_traces.timeout,
|
426
424
|
metadata: metadata,
|
427
425
|
retry_policy: @config.rpcs.patch_traces.retry_policy
|
428
|
-
|
426
|
+
|
427
|
+
options.apply_defaults timeout: @config.timeout,
|
428
|
+
metadata: @config.metadata,
|
429
429
|
retry_policy: @config.retry_policy
|
430
430
|
|
431
431
|
@trace_service_stub.call_rpc :patch_traces, request, options: options do |response, operation|
|
@@ -449,22 +449,21 @@ module Google
|
|
449
449
|
# Configuration can be applied globally to all clients, or to a single client
|
450
450
|
# on construction.
|
451
451
|
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
# to 20 seconds,
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
# end
|
452
|
+
# @example
|
453
|
+
#
|
454
|
+
# # Modify the global config, setting the timeout for
|
455
|
+
# # list_traces to 20 seconds,
|
456
|
+
# # and all remaining timeouts to 10 seconds.
|
457
|
+
# ::Google::Cloud::Trace::V1::TraceService::Client.configure do |config|
|
458
|
+
# config.timeout = 10.0
|
459
|
+
# config.rpcs.list_traces.timeout = 20.0
|
460
|
+
# end
|
461
|
+
#
|
462
|
+
# # Apply the above configuration only to a new client.
|
463
|
+
# client = ::Google::Cloud::Trace::V1::TraceService::Client.new do |config|
|
464
|
+
# config.timeout = 10.0
|
465
|
+
# config.rpcs.list_traces.timeout = 20.0
|
466
|
+
# end
|
468
467
|
#
|
469
468
|
# @!attribute [rw] endpoint
|
470
469
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-trace-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|