elastic-apm 4.7.1 → 4.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.asciidoc +7 -0
- data/lib/elastic_apm/metadata/cloud_info.rb +8 -5
- data/lib/elastic_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdaeccf4158cad055c398f2f617bc94b4ccb975714c0e8770ec84360fab6a277
|
4
|
+
data.tar.gz: 0e3af4ae48aeb9f35818d69c54322dde5d5eb590496b579e0172f641d355f575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6349f41ace14b70f7666fca71a15f96798c9786e4995f0206dab38b308b494a8cf34f8bdd432e64683e98a460e24e3168d8251a78050fe89bd7ac52fe6ce1728
|
7
|
+
data.tar.gz: f28824268f7ffa1806078fc9f24d469fef14218ac21f462edc8e1a4f6a1bf66aed7ceb847cbbcbe09227c9294a16bd739c2d6cb010d296e33f77c4d16957baca
|
data/CHANGELOG.asciidoc
CHANGED
@@ -34,6 +34,13 @@ endif::[]
|
|
34
34
|
[[release-notes-4.x]]
|
35
35
|
=== Ruby Agent version 4.x
|
36
36
|
|
37
|
+
[[release-notes-4.7.2]
|
38
|
+
==== 4.7.2
|
39
|
+
|
40
|
+
[float]
|
41
|
+
===== Fixed
|
42
|
+
- Address machineType not being returned in GCP metadata {pull}1435[#1435]
|
43
|
+
|
37
44
|
[[release-notes-4.7.1]
|
38
45
|
==== 4.7.1
|
39
46
|
|
@@ -94,15 +94,18 @@ module ElasticAPM
|
|
94
94
|
return unless resp.status == 200
|
95
95
|
return unless (metadata = JSON.parse(resp.body.to_s))
|
96
96
|
|
97
|
-
zone = metadata["instance"]["zone"]&.split("/")&.at(-1)
|
98
|
-
|
99
97
|
self.provider = "gcp"
|
100
|
-
self.instance_id = metadata["instance"]["id"].to_s
|
101
|
-
self.instance_name = metadata["instance"]["name"]
|
102
98
|
self.project_id = metadata["project"]["projectId"]
|
99
|
+
|
100
|
+
return unless metadata['instance']
|
101
|
+
|
102
|
+
zone = metadata["instance"]["zone"]&.split("/")&.at(-1)
|
103
103
|
self.availability_zone = zone
|
104
104
|
self.region = zone.split("-")[0..-2].join("-")
|
105
|
-
|
105
|
+
|
106
|
+
self.instance_id = metadata["instance"]["id"].to_s
|
107
|
+
self.instance_name = metadata["instance"]["name"]
|
108
|
+
self.machine_type = metadata["instance"]["machineType"]&.split("/")&.at(-1)
|
106
109
|
rescue HTTP::TimeoutError, HTTP::ConnectionError
|
107
110
|
nil
|
108
111
|
end
|
data/lib/elastic_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-01-
|
12
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|