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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61f82792e9ddefbe815bde50cd33dabbb9de79266d3ffc620a7d421189ed1cf6
|
4
|
+
data.tar.gz: de159b2df9377a524463c75a59ef8b3269723bfd7fe3726f95c3f09fd962c5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
48
|
+
# @example
|
49
49
|
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
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
|
-
#
|
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
|
-
#
|
116
|
-
#
|
109
|
+
# # Create a client using the default configuration
|
110
|
+
# client = ::Google::Cloud::Trace::V2::TraceService::Client.new
|
117
111
|
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
# to 20 seconds,
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
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.
|
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.
|
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
|