google-cloud-trace-v2 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: c40d41870b32f9d701cfc5d37f0be217743a98ce901ec5d982f2401942a47670
4
- data.tar.gz: fb37434feb0fbcdf93be1603e4507a9fd08f26b7afbdc28b9d5cd571bf976aef
3
+ metadata.gz: 61f82792e9ddefbe815bde50cd33dabbb9de79266d3ffc620a7d421189ed1cf6
4
+ data.tar.gz: de159b2df9377a524463c75a59ef8b3269723bfd7fe3726f95c3f09fd962c5c6
5
5
  SHA512:
6
- metadata.gz: 7a85a3db731190ae09ba50882e43d57eeb1bb18626b4fc256fe7d5b920e1bb73be6473770163117f4c59444d4ee4bd67c90622ed5aee3743581fb8df0657bd78
7
- data.tar.gz: 516fc0adbf19419aeba5642b0d068fe6046fc436acc35488017a80db96aa0eb4a795bf66f60e7459266ce34473fdb23e067a59bd93fb906bed0f01268c76091b
6
+ metadata.gz: 00c403574e161f7618e4425aa01645d09ef571e5b2af6d1e2e6f99ae3153ae9c82192accae28902c3c44e2fbed7acf46f5d9398b803027e50486d3e358036456
7
+ data.tar.gz: ef146e29d3d9f7640730923389cfbb7c35b9e6e925e5de01d110a84497bad022844a5df979d7b5957e632c103311f5580f786da3885f12182b595fa852faf0ea
@@ -45,13 +45,12 @@ module Google
45
45
  # See {::Google::Cloud::Trace::V2::TraceService::Client::Configuration}
46
46
  # for a description of the configuration fields.
47
47
  #
48
- # ## Example
48
+ # @example
49
49
  #
50
- # To modify the configuration for all TraceService clients:
51
- #
52
- # ::Google::Cloud::Trace::V2::TraceService::Client.configure do |config|
53
- # config.timeout = 10.0
54
- # end
50
+ # # Modify the configuration for all TraceService clients
51
+ # ::Google::Cloud::Trace::V2::TraceService::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
55
54
  #
56
55
  # @yield [config] Configure the Client client.
57
56
  # @yieldparam config [Client::Configuration]
@@ -105,19 +104,15 @@ module Google
105
104
  ##
106
105
  # Create a new TraceService client object.
107
106
  #
108
- # ## Examples
109
- #
110
- # To create a new TraceService client with the default
111
- # configuration:
112
- #
113
- # client = ::Google::Cloud::Trace::V2::TraceService::Client.new
107
+ # @example
114
108
  #
115
- # To create a new TraceService client with a custom
116
- # configuration:
109
+ # # Create a client using the default configuration
110
+ # client = ::Google::Cloud::Trace::V2::TraceService::Client.new
117
111
  #
118
- # client = ::Google::Cloud::Trace::V2::TraceService::Client.new do |config|
119
- # config.timeout = 10.0
120
- # end
112
+ # # Create a client using a custom configuration
113
+ # client = ::Google::Cloud::Trace::V2::TraceService::Client.new do |config|
114
+ # config.timeout = 10.0
115
+ # end
121
116
  #
122
117
  # @yield [config] Configure the TraceService client.
123
118
  # @yieldparam config [Client::Configuration]
@@ -137,10 +132,9 @@ module Google
137
132
 
138
133
  # Create credentials
139
134
  credentials = @config.credentials
140
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
135
+ # Use self-signed JWT if the endpoint is unchanged from default,
141
136
  # but only if the default endpoint does not have a region prefix.
142
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
143
- @config.endpoint == Client.configure.endpoint &&
137
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
144
138
  !@config.endpoint.split(".").first.include?("-")
145
139
  credentials ||= Credentials.default scope: @config.scope,
146
140
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -221,7 +215,9 @@ module Google
221
215
  options.apply_defaults timeout: @config.rpcs.batch_write_spans.timeout,
222
216
  metadata: metadata,
223
217
  retry_policy: @config.rpcs.batch_write_spans.retry_policy
224
- options.apply_defaults metadata: @config.metadata,
218
+
219
+ options.apply_defaults timeout: @config.timeout,
220
+ metadata: @config.metadata,
225
221
  retry_policy: @config.retry_policy
226
222
 
227
223
  @trace_service_stub.call_rpc :batch_write_spans, request, options: options do |response, operation|
@@ -340,7 +336,9 @@ module Google
340
336
  options.apply_defaults timeout: @config.rpcs.create_span.timeout,
341
337
  metadata: metadata,
342
338
  retry_policy: @config.rpcs.create_span.retry_policy
343
- options.apply_defaults metadata: @config.metadata,
339
+
340
+ options.apply_defaults timeout: @config.timeout,
341
+ metadata: @config.metadata,
344
342
  retry_policy: @config.retry_policy
345
343
 
346
344
  @trace_service_stub.call_rpc :create_span, request, options: options do |response, operation|
@@ -364,22 +362,21 @@ module Google
364
362
  # Configuration can be applied globally to all clients, or to a single client
365
363
  # on construction.
366
364
  #
367
- # # Examples
368
- #
369
- # To modify the global config, setting the timeout for batch_write_spans
370
- # to 20 seconds, and all remaining timeouts to 10 seconds:
371
- #
372
- # ::Google::Cloud::Trace::V2::TraceService::Client.configure do |config|
373
- # config.timeout = 10.0
374
- # config.rpcs.batch_write_spans.timeout = 20.0
375
- # end
376
- #
377
- # To apply the above configuration only to a new client:
378
- #
379
- # client = ::Google::Cloud::Trace::V2::TraceService::Client.new do |config|
380
- # config.timeout = 10.0
381
- # config.rpcs.batch_write_spans.timeout = 20.0
382
- # end
365
+ # @example
366
+ #
367
+ # # Modify the global config, setting the timeout for
368
+ # # batch_write_spans to 20 seconds,
369
+ # # and all remaining timeouts to 10 seconds.
370
+ # ::Google::Cloud::Trace::V2::TraceService::Client.configure do |config|
371
+ # config.timeout = 10.0
372
+ # config.rpcs.batch_write_spans.timeout = 20.0
373
+ # end
374
+ #
375
+ # # Apply the above configuration only to a new client.
376
+ # client = ::Google::Cloud::Trace::V2::TraceService::Client.new do |config|
377
+ # config.timeout = 10.0
378
+ # config.rpcs.batch_write_spans.timeout = 20.0
379
+ # end
383
380
  #
384
381
  # @!attribute [rw] endpoint
385
382
  # 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 V2
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-v2
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