opentelemetry-resource_detectors 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41a41057edba94d3e9622fc7b6bda1c97213d62b7170424604177f87d6fc4890
|
4
|
+
data.tar.gz: aa573920fcbc297595ca3889cc76c2de1b88f10ca499bfe961a333e6ffd56a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6044b654f936d86939a8a44dc23908fc357533a18c201e719346b438a1d7ad6131ac2cfdcfaca412e267f976de29d93f5fddecc9fed4d53492743789243363c6
|
7
|
+
data.tar.gz: 6cccfa8dbe9c134ba3fe6037bd79e1d6b32c9547c68eb7755ed06d5b69d75c8939f749897619a5d8380ba64b5b5919240bc2121547efeef13687d7a765591da5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
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
|
+
|
8
|
+
### v0.15.0 / 2021-02-18
|
9
|
+
|
10
|
+
* (No significant changes)
|
11
|
+
|
12
|
+
### v0.14.0 / 2021-02-03
|
13
|
+
|
14
|
+
* DOCS: Updated gem name to match gemspec
|
15
|
+
|
16
|
+
### v0.13.0 / 2021-01-29
|
17
|
+
|
18
|
+
* (No significant changes)
|
19
|
+
|
20
|
+
### v0.12.0 / 2020-12-24
|
21
|
+
|
22
|
+
* (No significant changes)
|
23
|
+
|
3
24
|
### v0.11.0 / 2020-12-11
|
4
25
|
|
5
26
|
* FIXED: Copyright comments to not reference year
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Opentelemetry::Resource::Detectors
|
2
2
|
|
3
|
-
The `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-
|
21
|
+
gem install opentelemetry-resource_detectors
|
22
22
|
```
|
23
23
|
|
24
|
-
Or, if you use Bundler, include `opentelemetry-sdk` and `opentelemetry-
|
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-
|
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
|
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-
|
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
|
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.
|
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:
|
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.
|
146
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
145
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-resource_detectors/v0.16.0/file.CHANGELOG.html
|
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.
|
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:
|