opentelemetry-resource_detectors 0.13.0 → 0.18.0

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: b8cede969a4918b29283acc28429006905441c1bd29ad5876edbb2810b484316
4
- data.tar.gz: a4407515a2820a6f5cb3834f6b01785f0995c8d406b7a99183694fb93d010f22
3
+ metadata.gz: cda39952991ff7e52afa48574b6af00cde2e786211e21a3590d265b0c7d1153e
4
+ data.tar.gz: 26fd2da7eae01f5a0d5ca7905192a8de385a1232e3fb313bb7949c26d6ffac09
5
5
  SHA512:
6
- metadata.gz: e6536b454114c77dda44a79a668d75b36e132ddf9734db312d178a14125a18f4340e9f5861ecd5416f804bb3bf49a85ce812083b741bae98d22b8cab92f673a7
7
- data.tar.gz: cf7ef8add89b6822e81421fede32a712a069071aba3171eadd138706be33830d45cefcded5732915f95113cc5aea9623956e8e85017977de4802d5b845169be0
6
+ metadata.gz: 21db85d6c4177e11d9b9eba71ec6c7d5deab75af6faaf4cd6195d528dc18bf6d69f69df246179bc3111cda365ce74b920e5bf32ae5d8f46aa341b15fbe9c40ec
7
+ data.tar.gz: bd22bb96d4c16cd5f6952bd19fe1d36caf13901a91b0f88a60e473f9b532fd3dc730befa4a2fc47ba46518f7450485a7df6186fe3cff7217b403f16e3b6212b9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release History: opentelemetry-resource_detectors
2
2
 
3
+ ### v0.18.0 / 2021-05-21
4
+
5
+ * FIXED: Rename cloud.zone to cloud.availability_zone
6
+
7
+ ### v0.17.0 / 2021-04-22
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.16.0 / 2021-03-17
12
+
13
+ * ADDED: Add k8s node to gcp resource detector
14
+ * DOCS: Replace Gitter with GitHub Discussions
15
+
16
+ ### v0.15.0 / 2021-02-18
17
+
18
+ * (No significant changes)
19
+
20
+ ### v0.14.0 / 2021-02-03
21
+
22
+ * DOCS: Updated gem name to match gemspec
23
+
3
24
  ### v0.13.0 / 2021-01-29
4
25
 
5
26
  * (No significant changes)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Opentelemetry::Resource::Detectors
2
2
 
3
- The `opentelemetry-resource-detectors` gem provides resource detectors for OpenTelemetry.
3
+ The `opentelemetry-resource_detectors` gem provides resource detectors for OpenTelemetry.
4
4
 
5
5
  ## What is OpenTelemetry?
6
6
 
@@ -18,10 +18,10 @@ Install the gem using:
18
18
 
19
19
  ```
20
20
  gem install opentelemetry-sdk
21
- gem install opentelemetry-resource-detectors
21
+ gem install opentelemetry-resource_detectors
22
22
  ```
23
23
 
24
- Or, if you use Bundler, include `opentelemetry-sdk` and `opentelemetry-resource-detectors` in your `Gemfile`.
24
+ Or, if you use Bundler, include `opentelemetry-sdk` and `opentelemetry-resource_detectors` in your `Gemfile`.
25
25
 
26
26
  ```rb
27
27
  require 'opentelemetry/sdk'
@@ -40,10 +40,12 @@ end
40
40
 
41
41
  ## How can I get involved?
42
42
 
43
- The `opentelemetry-resource-detectors` gem source is on github, along with related gems.
43
+ The `opentelemetry-resource_detectors` gem source is on github, along with related gems.
44
44
 
45
- The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us on our gitter channel or attending our weekly meeting. See the meeting calendar for dates and times. For more information on this and other language SIGs, see the OpenTelemetry community page.
45
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the meeting calendar for dates and times. For more information on this and other language SIGs, see the OpenTelemetry community page.
46
46
 
47
47
  ## License
48
48
 
49
- The `opentelemetry-resource-detectors` gem is distributed under the Apache 2.0 license. See LICENSE for more information.
49
+ The `opentelemetry-resource_detectors` gem is distributed under the Apache 2.0 license. See LICENSE for more information.
50
+
51
+ [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -22,7 +22,7 @@ module OpenTelemetry
22
22
  resource_attributes[resource_constants::CLOUD_RESOURCE[:provider]] = 'gcp'
23
23
  resource_attributes[resource_constants::CLOUD_RESOURCE[:account_id]] = gcp_env.project_id
24
24
  resource_attributes[resource_constants::CLOUD_RESOURCE[:region]] = gcp_env.instance_attribute('cluster-location')
25
- resource_attributes[resource_constants::CLOUD_RESOURCE[:zone]] = gcp_env.instance_zone
25
+ resource_attributes[resource_constants::CLOUD_RESOURCE[:availability_zone]] = gcp_env.instance_zone
26
26
 
27
27
  resource_attributes[resource_constants::HOST_RESOURCE[:id]] = gcp_env.lookup_metadata('instance', 'id')
28
28
  resource_attributes[resource_constants::HOST_RESOURCE[:name]] = ENV['HOSTNAME'] ||
@@ -34,6 +34,7 @@ module OpenTelemetry
34
34
  resource_attributes[resource_constants::K8S_RESOURCE[:cluster_name]] = gcp_env.instance_attribute('cluster-name')
35
35
  resource_attributes[resource_constants::K8S_RESOURCE[:namespace_name]] = gcp_env.kubernetes_engine_namespace_id
36
36
  resource_attributes[resource_constants::K8S_RESOURCE[:pod_name]] = ENV['HOSTNAME'] || safe_gethostname
37
+ resource_attributes[resource_constants::K8S_RESOURCE[:node_name]] = gcp_env.lookup_metadata('instance', 'hostname')
37
38
 
38
39
  resource_attributes[resource_constants::CONTAINER_RESOURCE[:name]] = ENV['CONTAINER_NAME']
39
40
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Resource
9
9
  module Detectors
10
- VERSION = '0.13.0'
10
+ VERSION = '0.18.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-resource_detectors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-30 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-env
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: opentelemetry-sdk
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -142,10 +156,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
142
156
  licenses:
143
157
  - Apache-2.0
144
158
  metadata:
145
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.13.0/file.CHANGELOG.html
159
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.18.0/file.CHANGELOG.html
146
160
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/resource_detectors
147
161
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
148
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.13.0
162
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.18.0
149
163
  post_install_message:
150
164
  rdoc_options: []
151
165
  require_paths:
@@ -161,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
175
  - !ruby/object:Gem::Version
162
176
  version: '0'
163
177
  requirements: []
164
- rubygems_version: 3.1.4
178
+ rubygems_version: 3.1.6
165
179
  signing_key:
166
180
  specification_version: 4
167
181
  summary: Resource detection helpers for OpenTelemetry