opencensus-stackdriver 0.3.0 → 0.3.1

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: fccacbc5dbd93388ade17c168d77b0a31cd0369b952b27fa1cb4fbc707f21c01
4
- data.tar.gz: 12a2e44508d7b3ee0a74e126931be8e1775bc3ee7e1e3473082291de1ae5240b
3
+ metadata.gz: ca811427d830958aa04a13f5e3b4d5c07d4b024842aacb239ac69d802eda26a9
4
+ data.tar.gz: 86baad99110980aabcd414f3d62b08c67f9918b9a0afc15c16f473c9135eff46
5
5
  SHA512:
6
- metadata.gz: 885148fe5c54cca14e707a2ba774b9d1fa41df6e9f051ca106643149122f02f12e76ba53dec10b380f6662aa2b85ccbe28b7aa1687f7500925a41bc129180457
7
- data.tar.gz: fc1572aa7fee3656ccc05632cd668efca389208bbcc6c0228907cd63e217a8ac1ecddc6efc9b0597268e6046f845de24180397d3500336c36b56e6347f753fdf
6
+ metadata.gz: e8cc90eb98cc2f43d23ae6467895932edd6ad03ad0ab62fa3cd97ba04f0803760f67b6c3abcafb16522db58f6f527d557213f272c344ea875c7f5b607f345b4b
7
+ data.tar.gz: 8d5a1fa2f50e50f29ade365e07ffcff831a93d4f6913166181136a74ca21ac1d8926f511faf7b8f25e612c70a6886f28533747b5dec32445450b65e4c051422e
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.3.1 / 2020-02-06
4
+
5
+ * Support customizing the stackdriver service address
6
+
3
7
  ### 0.3.0 / 2019-10-14
4
8
 
5
9
  This release requires version 0.5 or later of the opencensus gem. It includes
@@ -16,6 +16,6 @@
16
16
  module OpenCensus
17
17
  module Stackdriver
18
18
  ## Current OpenCensus Stackdriver plugin version
19
- VERSION = "0.3.0".freeze
19
+ VERSION = "0.3.1".freeze
20
20
  end
21
21
  end
@@ -103,6 +103,9 @@ module OpenCensus
103
103
  # Default value set to {GLOBAL_RESOURCE_TYPE}
104
104
  # @param [Hash<String,String>] resource_labels Metric resource labels.
105
105
  # Default value set to { "project_id" => project_id }
106
+ # @param [String] gcm_service_address Override for the Google
107
+ # Cloud Monitoring service hostname, or `nil` to leave as
108
+ # the default.
106
109
  #
107
110
  def initialize \
108
111
  project_id: nil,
@@ -116,7 +119,8 @@ module OpenCensus
116
119
  mock_client: nil,
117
120
  metric_prefix: nil,
118
121
  resource_type: nil,
119
- resource_labels: nil
122
+ resource_labels: nil,
123
+ gcm_service_address: nil
120
124
  @project_id = final_project_id project_id
121
125
  @metric_prefix = metric_prefix || CUSTOM_OPENCENSUS_DOMAIN
122
126
  @resource_type = resource_type || GLOBAL_RESOURCE_TYPE
@@ -135,7 +139,8 @@ module OpenCensus
135
139
  else
136
140
  credentials = final_credentials credentials, scope
137
141
  @client_promise = create_client_promise \
138
- @executor, credentials, scope, client_config, timeout
142
+ @executor, credentials, scope, client_config, timeout,
143
+ gcm_service_address
139
144
  end
140
145
 
141
146
  @converter = Converter.new @project_id
@@ -158,7 +163,7 @@ module OpenCensus
158
163
  export_as_batch(client, views_data)
159
164
  end
160
165
  export_promise.on_error do |reason|
161
- warn "Unable to export to Monitering service because: #{reason}"
166
+ warn "Unable to export to Monitoring service because: #{reason}"
162
167
  end
163
168
 
164
169
  nil
@@ -274,7 +279,7 @@ module OpenCensus
274
279
  # we actually need it. This is important because if it is intialized
275
280
  # too early, before a fork, it can go into a bad state.
276
281
  def create_client_promise executor, credentials, scopes, client_config,
277
- timeout
282
+ timeout, service_address
278
283
  Concurrent::Promise.new executor: executor do
279
284
  Google::Cloud::Monitoring::Metric.new(
280
285
  credentials: credentials,
@@ -282,7 +287,8 @@ module OpenCensus
282
287
  client_config: client_config,
283
288
  timeout: timeout,
284
289
  lib_name: "opencensus",
285
- lib_version: OpenCensus::Stackdriver::VERSION
290
+ lib_version: OpenCensus::Stackdriver::VERSION,
291
+ service_address: service_address
286
292
  )
287
293
  end
288
294
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opencensus-stackdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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-10-14 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubygems_version: 3.0.3
235
+ rubygems_version: 3.1.2
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Stackdriver exporter for OpenCensus