google-cloud-trace 0.34.3 → 0.34.4

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: e283386f69a6f1fe63c72f5fdc1ae1d83f2ebdba44a00848e2d63612e09b8f22
4
- data.tar.gz: b1dc3c2492cac16ed55b3d8663f6d2a3bcba0921bdcc1395d98ff457114b3f26
3
+ metadata.gz: 842f06a734f5a1f787f4d1ed88c9fb2f9d040c67280cfdda546fba608ca2994d
4
+ data.tar.gz: a82c5fa468cb95ddeb0f31f03ccadd196a463e3bd30f93660462ded59ea15fee
5
5
  SHA512:
6
- metadata.gz: 38244622a28ffff2a1b3dff731f2a340ec752297b1ef1142dc2ad6cfc508b4e904abb1f411ba2c22cec2ef33a226607b110ff20c01a30ac924252b52c27e09b6
7
- data.tar.gz: f99f0a35bd20219324960587c063f1b4a72a54cc7317df3bea12587e6912edbedeaf64cb1c3feed0d312b6a2e867ffd42a676bfe30a4b474cd0e5e20b26dbcfe
6
+ metadata.gz: 3afb0d23906c4b9a3856e1bcd46617be7e816c0c5e5a77cf7af111772a126ab155b5ab77277b01ed6af6031e1b54329a622fc8a29bb90451a1cbbcde7ad37e4e
7
+ data.tar.gz: e0dae52d0b9f6271cb41afb1de82424bd0ec1ae7c8df01b71046443727171db89e1c140f7887692b264e9ec4799ff2cd752bd85473b12eda789dbf7755169999
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.34.4 / 2019-07-08
4
+
5
+ * Support overriding service host and port in the low-level interface.
6
+
3
7
  ### 0.34.3 / 2019-06-11
4
8
 
5
9
  * Accept Numeric in Google::Cloud::Trace::Utils.time_to_grpc
@@ -100,6 +100,10 @@ module Google
100
100
  # The default timeout, in seconds, for calls made through this client.
101
101
  # @param metadata [Hash]
102
102
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
103
+ # @param service_address [String]
104
+ # Override for the service hostname, or `nil` to leave as the default.
105
+ # @param service_port [Integer]
106
+ # Override for the service port, or `nil` to leave as the default.
103
107
  # @param exception_transformer [Proc]
104
108
  # An optional proc that intercepts any exceptions raised during an API call to inject
105
109
  # custom error handling.
@@ -109,6 +113,8 @@ module Google
109
113
  client_config: {},
110
114
  timeout: DEFAULT_TIMEOUT,
111
115
  metadata: nil,
116
+ service_address: nil,
117
+ service_port: nil,
112
118
  exception_transformer: nil,
113
119
  lib_name: nil,
114
120
  lib_version: ""
@@ -163,8 +169,8 @@ module Google
163
169
  end
164
170
 
165
171
  # Allow overriding the service path/port in subclasses.
166
- service_path = self.class::SERVICE_ADDRESS
167
- port = self.class::DEFAULT_SERVICE_PORT
172
+ service_path = service_address || self.class::SERVICE_ADDRESS
173
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
168
174
  interceptors = self.class::GRPC_INTERCEPTORS
169
175
  @trace_service_stub = Google::Gax::Grpc.create_stub(
170
176
  service_path,
@@ -105,6 +105,8 @@ module Google
105
105
  client_config: client_config,
106
106
  timeout: timeout,
107
107
  lib_name: lib_name,
108
+ service_address: service_address,
109
+ service_port: service_port,
108
110
  lib_version: lib_version
109
111
  }.select { |_, v| v != nil }
110
112
  Google::Cloud::Trace::V2::TraceServiceClient.new(**kwargs)
@@ -124,6 +124,10 @@ module Google
124
124
  # The default timeout, in seconds, for calls made through this client.
125
125
  # @param metadata [Hash]
126
126
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
127
+ # @param service_address [String]
128
+ # Override for the service hostname, or `nil` to leave as the default.
129
+ # @param service_port [Integer]
130
+ # Override for the service port, or `nil` to leave as the default.
127
131
  # @param exception_transformer [Proc]
128
132
  # An optional proc that intercepts any exceptions raised during an API call to inject
129
133
  # custom error handling.
@@ -133,6 +137,8 @@ module Google
133
137
  client_config: {},
134
138
  timeout: DEFAULT_TIMEOUT,
135
139
  metadata: nil,
140
+ service_address: nil,
141
+ service_port: nil,
136
142
  exception_transformer: nil,
137
143
  lib_name: nil,
138
144
  lib_version: ""
@@ -186,8 +192,8 @@ module Google
186
192
  end
187
193
 
188
194
  # Allow overriding the service path/port in subclasses.
189
- service_path = self.class::SERVICE_ADDRESS
190
- port = self.class::DEFAULT_SERVICE_PORT
195
+ service_path = service_address || self.class::SERVICE_ADDRESS
196
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
191
197
  interceptors = self.class::GRPC_INTERCEPTORS
192
198
  @trace_service_stub = Google::Gax::Grpc.create_stub(
193
199
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.34.3".freeze
19
+ VERSION = "0.34.4".freeze
20
20
  end
21
21
  end
22
22
  end
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.34.3
4
+ version: 0.34.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: concurrent-ruby
57
57
  requirement: !ruby/object:Gem::Requirement