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 +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +8 -6
- data/lib/opentelemetry/resource/detectors/google_cloud_platform.rb +1 -0
- data/lib/opentelemetry/resource/detectors/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 469b53f604a5b11235ece8357dfcdc613560d5b0853059eb4d56e0f3129bcec2
|
4
|
+
data.tar.gz: 64cebb9ede72ac283c3af65bb8ea016a1d65b93723b7e781ed99b16eda1dec22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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.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:
|
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.
|
146
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
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.
|
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.
|
178
|
+
rubygems_version: 3.1.6
|
165
179
|
signing_key:
|
166
180
|
specification_version: 4
|
167
181
|
summary: Resource detection helpers for OpenTelemetry
|