google-cloud-trace-v1 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 456265392e096a6b1325163688206cf206c5a42f9424a458a2e696ebae2a9bf4
4
- data.tar.gz: 4e3a036bd1e669b4312c42adc3fa8ac534f496bcbc7ad0cc937026cc2061b9ff
3
+ metadata.gz: 6058eaca1038413cdf7d19ca27da0c4c565909b70b04a5e5422c789946bf5739
4
+ data.tar.gz: aa96c078e319be069eb945efb7a69396b227665da0e25b48bc936718f12e1eca
5
5
  SHA512:
6
- metadata.gz: 28e1e1d71cf7ca7989d51c7d601d543e6c70fb191760ed7131a3b3270c75e192137c8c40e40b835a38d8909a91d85194d8ecb098128d2274f444748a751ab579
7
- data.tar.gz: 8c68eebe6bf94f7c1b7058fafb7cb521ae609c803a17d2d83070067589863b108b87a5a6da385f75d8bd779c2fd1743856a9956b5b0ba64ca35b7dd153876115
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
- # ## Example
46
+ # @example
47
47
  #
48
- # To modify the configuration for all TraceService clients:
49
- #
50
- # ::Google::Cloud::Trace::V1::TraceService::Client.configure do |config|
51
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new TraceService client with a custom
122
- # configuration:
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Cloud::Trace::V1::TraceService::Client.new
123
117
  #
124
- # client = ::Google::Cloud::Trace::V1::TraceService::Client.new do |config|
125
- # config.timeout = 10.0
126
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
453
- #
454
- # To modify the global config, setting the timeout for list_traces
455
- # to 20 seconds, and all remaining timeouts to 10 seconds:
456
- #
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
- # To apply the above configuration only to a new client:
463
- #
464
- # client = ::Google::Cloud::Trace::V1::TraceService::Client.new do |config|
465
- # config.timeout = 10.0
466
- # config.rpcs.list_traces.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Trace
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
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.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a