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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/opencensus/stackdriver/version.rb +1 -1
- data/lib/opencensus/stats/exporters/stackdriver.rb +11 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca811427d830958aa04a13f5e3b4d5c07d4b024842aacb239ac69d802eda26a9
|
4
|
+
data.tar.gz: 86baad99110980aabcd414f3d62b08c67f9918b9a0afc15c16f473c9135eff46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8cc90eb98cc2f43d23ae6467895932edd6ad03ad0ab62fa3cd97ba04f0803760f67b6c3abcafb16522db58f6f527d557213f272c344ea875c7f5b607f345b4b
|
7
|
+
data.tar.gz: 8d5a1fa2f50e50f29ade365e07ffcff831a93d4f6913166181136a74ca21ac1d8926f511faf7b8f25e612c70a6886f28533747b5dec32445450b65e4c051422e
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
235
|
+
rubygems_version: 3.1.2
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Stackdriver exporter for OpenCensus
|