opentelemetry-resource_detectors 0.12.0 → 0.17.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: 0cf68b2a3a7eacb8e3edfe6c4d64848513230738df95e1b43908dd6743c4b79a
4
- data.tar.gz: c6e7d63eabf0e797c4e7e42739f32765a40182bff67cbb718614e0d5c48d00de
3
+ metadata.gz: 469b53f604a5b11235ece8357dfcdc613560d5b0853059eb4d56e0f3129bcec2
4
+ data.tar.gz: 64cebb9ede72ac283c3af65bb8ea016a1d65b93723b7e781ed99b16eda1dec22
5
5
  SHA512:
6
- metadata.gz: ef6f34be47b1bf60b4fc4bbaee433327710d3966fbbfd6f6d1da3c969444214b940b32517ae9be9f033383771d0e1f43d0d7743ff56338d16aefd8f9946fbbeb
7
- data.tar.gz: c9019b60880e2ff7e5aa3542401541b0446ba9e4f884a9858d6e7ffcbdb8f3e85bf41e8a6e36ab6fa01525e8746fe040d9aec934e8bbafbf54fdabcdf446de19
6
+ metadata.gz: 31d31b272a4ec0dfdc478c3c370f8ad25778055cbbba0a36d4008bc206e37fd9b56db1074e4243fe5d5e339684ed6e853a7af2221f9f4330571b7a41abd1f170
7
+ data.tar.gz: a4cb1e0b674d814977d9b56d0007bf585e864276e9c0865e31b911edefa678b2bd0e0fa522fb9bfa8fe76123c7662ce802182417b347d5871ecacfb9e35bcb7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release History: opentelemetry-resource_detectors
2
2
 
3
+ ### v0.17.0 / 2021-04-22
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.16.0 / 2021-03-17
8
+
9
+ * ADDED: Add k8s node to gcp resource detector
10
+ * DOCS: Replace Gitter with GitHub Discussions
11
+
12
+ ### v0.15.0 / 2021-02-18
13
+
14
+ * (No significant changes)
15
+
16
+ ### v0.14.0 / 2021-02-03
17
+
18
+ * DOCS: Updated gem name to match gemspec
19
+
20
+ ### v0.13.0 / 2021-01-29
21
+
22
+ * (No significant changes)
23
+
3
24
  ### v0.12.0 / 2020-12-24
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
@@ -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.12.0'
10
+ VERSION = '0.17.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.12.0
4
+ version: 0.17.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: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2021-04-23 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.12.0/file.CHANGELOG.html
146
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/resource_detectors
159
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.17.0/file.CHANGELOG.html
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.12.0
162
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.17.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