opentelemetry-resource_detectors 0.15.0 → 0.16.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: a6d06fe5980009a2682831c6006075c1b5c6ff3098da77d65134ce6f3496fa40
4
- data.tar.gz: 4d8dbde4601521fded838529bca3dec28f7634331b94843ff0545349e5711281
3
+ metadata.gz: 41a41057edba94d3e9622fc7b6bda1c97213d62b7170424604177f87d6fc4890
4
+ data.tar.gz: aa573920fcbc297595ca3889cc76c2de1b88f10ca499bfe961a333e6ffd56a94
5
5
  SHA512:
6
- metadata.gz: 8538d48a858e8312effd6e998e0a17780f03b090e4e82d4993ead478183c1f176e0a581146ebfc273bcfe0c42d6615a84f9df6b3b02ea9f1ea076d37b3ea570a
7
- data.tar.gz: b1d329202587458f74469b23352087130e978ea92d67243e7f165c57a4255c75936f0cca32c30a591ddd43e1d77ffdb8d041e9d74c7a2dd48c5e2ff831c907d0
6
+ metadata.gz: 6044b654f936d86939a8a44dc23908fc357533a18c201e719346b438a1d7ad6131ac2cfdcfaca412e267f976de29d93f5fddecc9fed4d53492743789243363c6
7
+ data.tar.gz: 6cccfa8dbe9c134ba3fe6037bd79e1d6b32c9547c68eb7755ed06d5b69d75c8939f749897619a5d8380ba64b5b5919240bc2121547efeef13687d7a765591da5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-resource_detectors
2
2
 
3
+ ### v0.16.0 / 2021-03-17
4
+
5
+ * ADDED: Add k8s node to gcp resource detector
6
+ * DOCS: Replace Gitter with GitHub Discussions
7
+
3
8
  ### v0.15.0 / 2021-02-18
4
9
 
5
10
  * (No significant changes)
data/README.md CHANGED
@@ -42,8 +42,10 @@ end
42
42
 
43
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
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.15.0'
10
+ VERSION = '0.16.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.15.0
4
+ version: 0.16.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-02-18 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-env
@@ -142,10 +142,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
142
142
  licenses:
143
143
  - Apache-2.0
144
144
  metadata:
145
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.15.0/file.CHANGELOG.html
145
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.16.0/file.CHANGELOG.html
146
146
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/resource_detectors
147
147
  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.15.0
148
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.16.0
149
149
  post_install_message:
150
150
  rdoc_options: []
151
151
  require_paths: