appsignal 3.5.3-java → 3.5.4-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.semaphore/semaphore.yml +33 -5
- data/CHANGELOG.md +19 -0
- data/Rakefile +3 -1
- data/build_matrix.yml +2 -4
- data/ext/Rakefile +1 -0
- data/ext/agent.rb +27 -27
- data/ext/appsignal_extension.c +0 -24
- data/ext/base.rb +4 -1
- data/lib/appsignal/cli/diagnose/paths.rb +25 -6
- data/lib/appsignal/extension/jruby.rb +0 -14
- data/lib/appsignal/helpers/metrics.rb +12 -10
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/cli/diagnose_spec.rb +17 -12
- data/spec/lib/appsignal_spec.rb +30 -30
- 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: 05c954ff428315efd96a1c89d5b5e16603d1452b3ba9a60da5ba427e00264d0f
|
|
4
|
+
data.tar.gz: aec02be38c6030f17f62f82a3b625bd944145d8f74f0801a743f263e4be35a99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6aaff16284e9241b8838cbb46c1172c359ce06d7afb7fe263c72b07968f0c8bffbe74b9989de08ce73da67f1f660afcb1d7c00064d1d640b043ed858cc27f38b
|
|
7
|
+
data.tar.gz: 80caacd2803317991bdb0c8197b0ea339a17642e1325a1418bdb88a4111295199e685f6594cc2caf07b36f993e2dbaa7b3a67adb6faeac298baf41827fa39cad
|
data/.semaphore/semaphore.yml
CHANGED
|
@@ -120,6 +120,9 @@ blocks:
|
|
|
120
120
|
- cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-diagnose-$(checksum Gemfile)
|
|
121
121
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
122
122
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
123
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
124
|
+
file found'"
|
|
125
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
123
126
|
- git submodule init
|
|
124
127
|
- git submodule update
|
|
125
128
|
jobs:
|
|
@@ -152,6 +155,9 @@ blocks:
|
|
|
152
155
|
- bundle config set clean 'true'
|
|
153
156
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
154
157
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
158
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
159
|
+
file found'"
|
|
160
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
155
161
|
epilogue: &1
|
|
156
162
|
on_pass:
|
|
157
163
|
commands:
|
|
@@ -159,11 +165,6 @@ blocks:
|
|
|
159
165
|
appsignal.gemspec) .bundle
|
|
160
166
|
- cache store $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE)-$(checksum
|
|
161
167
|
appsignal.gemspec) $HOME/.gem
|
|
162
|
-
on_fail:
|
|
163
|
-
commands:
|
|
164
|
-
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
165
|
-
file found'"
|
|
166
|
-
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
167
168
|
jobs:
|
|
168
169
|
- name: Ruby 2.7.8 for no_dependencies
|
|
169
170
|
env_vars:
|
|
@@ -206,6 +207,9 @@ blocks:
|
|
|
206
207
|
- bundle config set clean 'true'
|
|
207
208
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
208
209
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
210
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
211
|
+
file found'"
|
|
212
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
209
213
|
epilogue: *1
|
|
210
214
|
jobs:
|
|
211
215
|
- name: Ruby 2.7.8 for capistrano2
|
|
@@ -510,6 +514,9 @@ blocks:
|
|
|
510
514
|
- bundle config set clean 'true'
|
|
511
515
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
512
516
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
517
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
518
|
+
file found'"
|
|
519
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
513
520
|
epilogue: *1
|
|
514
521
|
jobs:
|
|
515
522
|
- name: Ruby 3.0.5 for no_dependencies
|
|
@@ -545,6 +552,9 @@ blocks:
|
|
|
545
552
|
- bundle config set clean 'true'
|
|
546
553
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
547
554
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
555
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
556
|
+
file found'"
|
|
557
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
548
558
|
epilogue: *1
|
|
549
559
|
jobs:
|
|
550
560
|
- name: Ruby 3.0.5 for capistrano2
|
|
@@ -903,6 +913,9 @@ blocks:
|
|
|
903
913
|
- bundle config set clean 'true'
|
|
904
914
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
905
915
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
916
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
917
|
+
file found'"
|
|
918
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
906
919
|
epilogue: *1
|
|
907
920
|
jobs:
|
|
908
921
|
- name: Ruby 3.1.3 for no_dependencies
|
|
@@ -938,6 +951,9 @@ blocks:
|
|
|
938
951
|
- bundle config set clean 'true'
|
|
939
952
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
940
953
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
954
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
955
|
+
file found'"
|
|
956
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
941
957
|
epilogue: *1
|
|
942
958
|
jobs:
|
|
943
959
|
- name: Ruby 3.1.3 for capistrano2
|
|
@@ -1278,6 +1294,9 @@ blocks:
|
|
|
1278
1294
|
- bundle config set clean 'true'
|
|
1279
1295
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
1280
1296
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
1297
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
1298
|
+
file found'"
|
|
1299
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
1281
1300
|
epilogue: *1
|
|
1282
1301
|
jobs:
|
|
1283
1302
|
- name: Ruby 3.2.1 for no_dependencies
|
|
@@ -1313,6 +1332,9 @@ blocks:
|
|
|
1313
1332
|
- bundle config set clean 'true'
|
|
1314
1333
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
1315
1334
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
1335
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
1336
|
+
file found'"
|
|
1337
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
1316
1338
|
epilogue: *1
|
|
1317
1339
|
jobs:
|
|
1318
1340
|
- name: Ruby 3.2.1 for capistrano2
|
|
@@ -1653,6 +1675,9 @@ blocks:
|
|
|
1653
1675
|
- bundle config set clean 'true'
|
|
1654
1676
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
1655
1677
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
1678
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
1679
|
+
file found'"
|
|
1680
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
1656
1681
|
epilogue: *1
|
|
1657
1682
|
jobs:
|
|
1658
1683
|
- name: Ruby jruby-9.4.1.0 for no_dependencies
|
|
@@ -1688,6 +1713,9 @@ blocks:
|
|
|
1688
1713
|
- bundle config set clean 'true'
|
|
1689
1714
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
1690
1715
|
- "./support/bundler_wrapper exec rake extension:install"
|
|
1716
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report
|
|
1717
|
+
file found'"
|
|
1718
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
1691
1719
|
epilogue: *1
|
|
1692
1720
|
jobs:
|
|
1693
1721
|
- name: Ruby jruby-9.4.1.0 for rails-6.0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
|
2
2
|
|
|
3
|
+
## 3.5.4
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- [1a863490](https://github.com/appsignal/appsignal-ruby/commit/1a863490046318b8cee5fff2ac341fb73065f252) patch - Fix disk usage returning a Vec with no entries on Alpine Linux when the `df --local` command fails.
|
|
8
|
+
|
|
9
|
+
### Deprecated
|
|
10
|
+
|
|
11
|
+
- [bb98744b](https://github.com/appsignal/appsignal-ruby/commit/bb98744b1b6d34db71b5f46279b1a9b26039bd0f) patch - Deprecate the `Appsignal.set_host_guage` and `Appsignal.set_process_gauge` helper methods in the Ruby gem. These methods would already log deprecation warnings in the `appsignal.log` file, but now also as a Ruby warning. These methods will be removed in the next major version. These methods already did not report any metrics, and still do not.
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
|
|
15
|
+
- [1a863490](https://github.com/appsignal/appsignal-ruby/commit/1a863490046318b8cee5fff2ac341fb73065f252) patch - Remove the `appsignal_set_host_guage` and `appsignal_set_process_gauge` extension functions. These functions were already deprecated and did not report any metrics.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- [0637b71d](https://github.com/appsignal/appsignal-ruby/commit/0637b71dedde155a2494c56f69bf3217e87e851d) patch - Fix the Makefile log path inclusion in the diagnose report. The diagnose tool didn't look in the correct gem extension directory for this log file.
|
|
20
|
+
- [fe71d78b](https://github.com/appsignal/appsignal-ruby/commit/fe71d78b2c897203bac5e6225bc1e21c6ba2c168) patch - Fix reporting of the Ruby syntax version and JRuby version in install report better.
|
|
21
|
+
|
|
3
22
|
## 3.5.3
|
|
4
23
|
|
|
5
24
|
### Changed
|
data/Rakefile
CHANGED
|
@@ -34,7 +34,9 @@ def build_task(matrix, ruby_version, type = nil)
|
|
|
34
34
|
"task" => {
|
|
35
35
|
"prologue" => matrix["prologue"].merge(
|
|
36
36
|
"commands" => matrix["prologue"]["commands"] + [
|
|
37
|
-
"./support/bundler_wrapper exec rake extension:install"
|
|
37
|
+
"./support/bundler_wrapper exec rake extension:install",
|
|
38
|
+
"[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report file found'", # rubocop:disable Metrics/LineLength
|
|
39
|
+
"[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
38
40
|
]
|
|
39
41
|
),
|
|
40
42
|
"epilogue" => matrix["epilogue"],
|
data/build_matrix.yml
CHANGED
|
@@ -114,6 +114,8 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
|
|
|
114
114
|
- cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-diagnose-$(checksum Gemfile)
|
|
115
115
|
- ./support/bundler_wrapper install --jobs=3 --retry=3
|
|
116
116
|
- ./support/bundler_wrapper exec rake extension:install
|
|
117
|
+
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report file found'"
|
|
118
|
+
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
117
119
|
- git submodule init
|
|
118
120
|
- git submodule update
|
|
119
121
|
jobs:
|
|
@@ -153,10 +155,6 @@ matrix:
|
|
|
153
155
|
commands:
|
|
154
156
|
- cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)-$(checksum appsignal.gemspec) .bundle
|
|
155
157
|
- cache store $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE)-$(checksum appsignal.gemspec) $HOME/.gem
|
|
156
|
-
on_fail:
|
|
157
|
-
commands:
|
|
158
|
-
- "[ -e ext/install.report ] && cat ext/install.report || echo 'No ext/install.report file found'"
|
|
159
|
-
- "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
|
|
160
158
|
|
|
161
159
|
defaults:
|
|
162
160
|
rubygems: "latest"
|
data/ext/Rakefile
CHANGED
data/ext/agent.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# Modifications to this file will be overwritten with the next agent release.
|
|
7
7
|
|
|
8
8
|
APPSIGNAL_AGENT_CONFIG = {
|
|
9
|
-
"version" => "
|
|
9
|
+
"version" => "bfe19b1",
|
|
10
10
|
"mirrors" => [
|
|
11
11
|
"https://appsignal-agent-releases.global.ssl.fastly.net",
|
|
12
12
|
"https://d135dj0rjqvssy.cloudfront.net"
|
|
@@ -14,131 +14,131 @@ APPSIGNAL_AGENT_CONFIG = {
|
|
|
14
14
|
"triples" => {
|
|
15
15
|
"x86_64-darwin" => {
|
|
16
16
|
"static" => {
|
|
17
|
-
"checksum" => "
|
|
17
|
+
"checksum" => "0985697683dc7f2bc0a353b637e3923a79b1945f730deceba73f65807cdcbb16",
|
|
18
18
|
"filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
|
|
19
19
|
},
|
|
20
20
|
"dynamic" => {
|
|
21
|
-
"checksum" => "
|
|
21
|
+
"checksum" => "ffa15b479a03b31a218d88fd0d381d93bd515073bf1e665a5ed6d6147e5f460f",
|
|
22
22
|
"filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"universal-darwin" => {
|
|
26
26
|
"static" => {
|
|
27
|
-
"checksum" => "
|
|
27
|
+
"checksum" => "0985697683dc7f2bc0a353b637e3923a79b1945f730deceba73f65807cdcbb16",
|
|
28
28
|
"filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
|
|
29
29
|
},
|
|
30
30
|
"dynamic" => {
|
|
31
|
-
"checksum" => "
|
|
31
|
+
"checksum" => "ffa15b479a03b31a218d88fd0d381d93bd515073bf1e665a5ed6d6147e5f460f",
|
|
32
32
|
"filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"aarch64-darwin" => {
|
|
36
36
|
"static" => {
|
|
37
|
-
"checksum" => "
|
|
37
|
+
"checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
|
|
38
38
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
|
39
39
|
},
|
|
40
40
|
"dynamic" => {
|
|
41
|
-
"checksum" => "
|
|
41
|
+
"checksum" => "336918dfa41a4252b7a2cf8250013ee210a45def3d5893eb58ca6bba71c25320",
|
|
42
42
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"arm64-darwin" => {
|
|
46
46
|
"static" => {
|
|
47
|
-
"checksum" => "
|
|
47
|
+
"checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
|
|
48
48
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
|
49
49
|
},
|
|
50
50
|
"dynamic" => {
|
|
51
|
-
"checksum" => "
|
|
51
|
+
"checksum" => "336918dfa41a4252b7a2cf8250013ee210a45def3d5893eb58ca6bba71c25320",
|
|
52
52
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"arm-darwin" => {
|
|
56
56
|
"static" => {
|
|
57
|
-
"checksum" => "
|
|
57
|
+
"checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
|
|
58
58
|
"filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
|
|
59
59
|
},
|
|
60
60
|
"dynamic" => {
|
|
61
|
-
"checksum" => "
|
|
61
|
+
"checksum" => "336918dfa41a4252b7a2cf8250013ee210a45def3d5893eb58ca6bba71c25320",
|
|
62
62
|
"filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"aarch64-linux" => {
|
|
66
66
|
"static" => {
|
|
67
|
-
"checksum" => "
|
|
67
|
+
"checksum" => "8278a46232ab0b88dfbd5276a7253f147a950ea0f55ebb104ef825a528d24b73",
|
|
68
68
|
"filename" => "appsignal-aarch64-linux-all-static.tar.gz"
|
|
69
69
|
},
|
|
70
70
|
"dynamic" => {
|
|
71
|
-
"checksum" => "
|
|
71
|
+
"checksum" => "43f737a65dae52bc2118fcb1ba0fcf35774eb5e62a1d74c0e9d3f9713c1ff1ca",
|
|
72
72
|
"filename" => "appsignal-aarch64-linux-all-dynamic.tar.gz"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"i686-linux" => {
|
|
76
76
|
"static" => {
|
|
77
|
-
"checksum" => "
|
|
77
|
+
"checksum" => "2b0cfc65ccd05d1258719e73fc19323729100d02a33d936ba79bb12cdede3763",
|
|
78
78
|
"filename" => "appsignal-i686-linux-all-static.tar.gz"
|
|
79
79
|
},
|
|
80
80
|
"dynamic" => {
|
|
81
|
-
"checksum" => "
|
|
81
|
+
"checksum" => "7b163e29e6db10b21295bbdbc06c31a8158522a0a14bd4cbaf4d71a8ac432902",
|
|
82
82
|
"filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"x86-linux" => {
|
|
86
86
|
"static" => {
|
|
87
|
-
"checksum" => "
|
|
87
|
+
"checksum" => "2b0cfc65ccd05d1258719e73fc19323729100d02a33d936ba79bb12cdede3763",
|
|
88
88
|
"filename" => "appsignal-i686-linux-all-static.tar.gz"
|
|
89
89
|
},
|
|
90
90
|
"dynamic" => {
|
|
91
|
-
"checksum" => "
|
|
91
|
+
"checksum" => "7b163e29e6db10b21295bbdbc06c31a8158522a0a14bd4cbaf4d71a8ac432902",
|
|
92
92
|
"filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"x86_64-linux" => {
|
|
96
96
|
"static" => {
|
|
97
|
-
"checksum" => "
|
|
97
|
+
"checksum" => "10bafbef6445ea1a37529b34fb103dd48e185f61f19f58f573377127d03f6a60",
|
|
98
98
|
"filename" => "appsignal-x86_64-linux-all-static.tar.gz"
|
|
99
99
|
},
|
|
100
100
|
"dynamic" => {
|
|
101
|
-
"checksum" => "
|
|
101
|
+
"checksum" => "bc6a5ffea46fc3e440a580344340e5dd0274372aae34132957707be0c0dc0bd2",
|
|
102
102
|
"filename" => "appsignal-x86_64-linux-all-dynamic.tar.gz"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"x86_64-linux-musl" => {
|
|
106
106
|
"static" => {
|
|
107
|
-
"checksum" => "
|
|
107
|
+
"checksum" => "fba0b10a3dcac0854cd9d19773ab48649fc79a35261eacdfe28d6e70c267b98a",
|
|
108
108
|
"filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
|
|
109
109
|
},
|
|
110
110
|
"dynamic" => {
|
|
111
|
-
"checksum" => "
|
|
111
|
+
"checksum" => "50f1c3f9102adb666ec27ac4aaab27193bf8896d64e3b4a2ba94c042f04f1cb7",
|
|
112
112
|
"filename" => "appsignal-x86_64-linux-musl-all-dynamic.tar.gz"
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"aarch64-linux-musl" => {
|
|
116
116
|
"static" => {
|
|
117
|
-
"checksum" => "
|
|
117
|
+
"checksum" => "98e8aafa0f688b1f1a9c37daf9e9cc1e36edc7e0ad65f86d8402469d15b6a1d6",
|
|
118
118
|
"filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
|
|
119
119
|
},
|
|
120
120
|
"dynamic" => {
|
|
121
|
-
"checksum" => "
|
|
121
|
+
"checksum" => "55dfab323718bc731678ff1268c9fa2e78de37ab39fb8b46aa806bfd41df4212",
|
|
122
122
|
"filename" => "appsignal-aarch64-linux-musl-all-dynamic.tar.gz"
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
"x86_64-freebsd" => {
|
|
126
126
|
"static" => {
|
|
127
|
-
"checksum" => "
|
|
127
|
+
"checksum" => "09ebc6406d81fdf81b2e76bef6c1344f34292e1b3727f7fc984c8df5c7698db5",
|
|
128
128
|
"filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
|
|
129
129
|
},
|
|
130
130
|
"dynamic" => {
|
|
131
|
-
"checksum" => "
|
|
131
|
+
"checksum" => "cdab19e2e6d5f6ad15f3d87f735cd867e7c54db0412c893c39de3521afd9b6d3",
|
|
132
132
|
"filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"amd64-freebsd" => {
|
|
136
136
|
"static" => {
|
|
137
|
-
"checksum" => "
|
|
137
|
+
"checksum" => "09ebc6406d81fdf81b2e76bef6c1344f34292e1b3727f7fc984c8df5c7698db5",
|
|
138
138
|
"filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
|
|
139
139
|
},
|
|
140
140
|
"dynamic" => {
|
|
141
|
-
"checksum" => "
|
|
141
|
+
"checksum" => "cdab19e2e6d5f6ad15f3d87f735cd867e7c54db0412c893c39de3521afd9b6d3",
|
|
142
142
|
"filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
|
|
143
143
|
}
|
|
144
144
|
}
|
data/ext/appsignal_extension.c
CHANGED
|
@@ -759,28 +759,6 @@ static VALUE set_gauge(VALUE self, VALUE key, VALUE value, VALUE tags) {
|
|
|
759
759
|
return Qnil;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
static VALUE set_host_gauge(VALUE self, VALUE key, VALUE value) {
|
|
763
|
-
Check_Type(key, T_STRING);
|
|
764
|
-
Check_Type(value, T_FLOAT);
|
|
765
|
-
|
|
766
|
-
appsignal_set_host_gauge(
|
|
767
|
-
make_appsignal_string(key),
|
|
768
|
-
NUM2DBL(value)
|
|
769
|
-
);
|
|
770
|
-
return Qnil;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
static VALUE set_process_gauge(VALUE self, VALUE key, VALUE value) {
|
|
774
|
-
Check_Type(key, T_STRING);
|
|
775
|
-
Check_Type(value, T_FLOAT);
|
|
776
|
-
|
|
777
|
-
appsignal_set_process_gauge(
|
|
778
|
-
make_appsignal_string(key),
|
|
779
|
-
NUM2DBL(value)
|
|
780
|
-
);
|
|
781
|
-
return Qnil;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
762
|
static VALUE increment_counter(VALUE self, VALUE key, VALUE count, VALUE tags) {
|
|
785
763
|
appsignal_data_t* tags_data;
|
|
786
764
|
|
|
@@ -941,8 +919,6 @@ void Init_appsignal_extension(void) {
|
|
|
941
919
|
|
|
942
920
|
// Metrics
|
|
943
921
|
rb_define_singleton_method(Extension, "set_gauge", set_gauge, 3);
|
|
944
|
-
rb_define_singleton_method(Extension, "set_host_gauge", set_host_gauge, 2);
|
|
945
|
-
rb_define_singleton_method(Extension, "set_process_gauge", set_process_gauge, 2);
|
|
946
922
|
rb_define_singleton_method(Extension, "increment_counter", increment_counter, 3);
|
|
947
923
|
rb_define_singleton_method(Extension, "add_distribution_value", add_distribution_value, 3);
|
|
948
924
|
}
|
data/ext/base.rb
CHANGED
|
@@ -26,13 +26,16 @@ def report
|
|
|
26
26
|
@report ||=
|
|
27
27
|
begin
|
|
28
28
|
rbconfig = RbConfig::CONFIG
|
|
29
|
+
patchlevel = rbconfig["PATCHLEVEL"]
|
|
30
|
+
patchlevel_label = "-p#{patchlevel}" if patchlevel
|
|
31
|
+
ruby_version = "#{RUBY_VERSION}#{patchlevel_label}"
|
|
29
32
|
{
|
|
30
33
|
"result" => {
|
|
31
34
|
"status" => "incomplete"
|
|
32
35
|
},
|
|
33
36
|
"language" => {
|
|
34
37
|
"name" => "ruby",
|
|
35
|
-
"version" =>
|
|
38
|
+
"version" => ruby_version
|
|
36
39
|
},
|
|
37
40
|
"download" => {
|
|
38
41
|
"checksum" => "unverified"
|
|
@@ -19,7 +19,6 @@ module Appsignal
|
|
|
19
19
|
begin
|
|
20
20
|
config = Appsignal.config
|
|
21
21
|
log_file_path = config.log_file_path
|
|
22
|
-
makefile_log_path = File.join("ext", "mkmf.log")
|
|
23
22
|
{
|
|
24
23
|
:package_install_path => {
|
|
25
24
|
:label => "AppSignal gem path",
|
|
@@ -37,9 +36,9 @@ module Appsignal
|
|
|
37
36
|
:label => "Log directory",
|
|
38
37
|
:path => log_file_path ? File.dirname(log_file_path) : ""
|
|
39
38
|
},
|
|
40
|
-
|
|
39
|
+
"ext/mkmf.log" => {
|
|
41
40
|
:label => "Makefile install log",
|
|
42
|
-
:path =>
|
|
41
|
+
:path => makefile_install_log_path
|
|
43
42
|
},
|
|
44
43
|
"appsignal.log" => {
|
|
45
44
|
:label => "AppSignal log",
|
|
@@ -54,8 +53,11 @@ module Appsignal
|
|
|
54
53
|
def path_stat(path)
|
|
55
54
|
{
|
|
56
55
|
:path => path,
|
|
57
|
-
:exists =>
|
|
56
|
+
:exists => false
|
|
58
57
|
}.tap do |info|
|
|
58
|
+
next unless info[:path]
|
|
59
|
+
|
|
60
|
+
info[:exists] = File.exist?(path)
|
|
59
61
|
next unless info[:exists]
|
|
60
62
|
|
|
61
63
|
stat = File.stat(path)
|
|
@@ -84,9 +86,26 @@ module Appsignal
|
|
|
84
86
|
end
|
|
85
87
|
|
|
86
88
|
# Returns the AppSignal gem installation path. The root directory of
|
|
87
|
-
# this gem.
|
|
89
|
+
# this gem when installed.
|
|
88
90
|
def gem_path
|
|
89
|
-
|
|
91
|
+
gemspec.full_gem_path
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Returns the AppSignal gem's Makefile log path, if it exists.
|
|
95
|
+
def makefile_install_log_path
|
|
96
|
+
possible_locations = [
|
|
97
|
+
# Installed gem location
|
|
98
|
+
File.join(gemspec.extension_dir, "mkmf.log"),
|
|
99
|
+
# Local development location
|
|
100
|
+
File.join(gem_path, "ext", "mkmf.log")
|
|
101
|
+
]
|
|
102
|
+
possible_locations.find do |location|
|
|
103
|
+
File.exist?(location)
|
|
104
|
+
end || possible_locations.first
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def gemspec
|
|
108
|
+
Gem.loaded_specs["appsignal"]
|
|
90
109
|
end
|
|
91
110
|
end
|
|
92
111
|
end
|
|
@@ -71,12 +71,6 @@ module Appsignal
|
|
|
71
71
|
attach_function :appsignal_set_gauge,
|
|
72
72
|
[:appsignal_string, :double, :pointer],
|
|
73
73
|
:void
|
|
74
|
-
attach_function :appsignal_set_host_gauge,
|
|
75
|
-
[:appsignal_string, :double],
|
|
76
|
-
:void
|
|
77
|
-
attach_function :appsignal_set_process_gauge,
|
|
78
|
-
[:appsignal_string, :double],
|
|
79
|
-
:void
|
|
80
74
|
attach_function :appsignal_increment_counter,
|
|
81
75
|
[:appsignal_string, :double, :pointer],
|
|
82
76
|
:void
|
|
@@ -319,14 +313,6 @@ module Appsignal
|
|
|
319
313
|
appsignal_set_gauge(make_appsignal_string(key), value, tags.pointer)
|
|
320
314
|
end
|
|
321
315
|
|
|
322
|
-
def set_host_gauge(key, value)
|
|
323
|
-
appsignal_set_host_gauge(make_appsignal_string(key), value)
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
def set_process_gauge(key, value)
|
|
327
|
-
appsignal_set_process_gauge(make_appsignal_string(key), value)
|
|
328
|
-
end
|
|
329
|
-
|
|
330
316
|
def increment_counter(key, value, tags)
|
|
331
317
|
appsignal_increment_counter(make_appsignal_string(key), value, tags.pointer)
|
|
332
318
|
end
|
|
@@ -14,18 +14,20 @@ module Appsignal
|
|
|
14
14
|
.warn("Gauge value #{value} for key '#{key}' is too big")
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def set_host_gauge(
|
|
18
|
-
Appsignal::
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
def set_host_gauge(_key, _value)
|
|
18
|
+
Appsignal::Utils::DeprecationMessage.message \
|
|
19
|
+
"The `set_host_gauge` method has been deprecated. " \
|
|
20
|
+
"Calling this method has no effect. " \
|
|
21
|
+
"Please remove method call in the following file to remove " \
|
|
22
|
+
"this message.\n#{caller.first}"
|
|
22
23
|
end
|
|
23
24
|
|
|
24
|
-
def set_process_gauge(
|
|
25
|
-
Appsignal::
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
def set_process_gauge(_key, _value)
|
|
26
|
+
Appsignal::Utils::DeprecationMessage.message \
|
|
27
|
+
"The `set_process_gauge` method has been deprecated. " \
|
|
28
|
+
"Calling this method has no effect. " \
|
|
29
|
+
"Please remove method call in the following file to remove " \
|
|
30
|
+
"this message.\n#{caller.first}"
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def increment_counter(key, value = 1.0, tags = {})
|
data/lib/appsignal/version.rb
CHANGED
|
@@ -253,15 +253,17 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
253
253
|
it "adds the installation report to the diagnostics report" do
|
|
254
254
|
run
|
|
255
255
|
jruby = Appsignal::System.jruby?
|
|
256
|
+
language = {
|
|
257
|
+
"name" => "ruby",
|
|
258
|
+
"version" => "#{RUBY_VERSION}#{"-p#{rbconfig["PATCHLEVEL"]}" unless jruby}",
|
|
259
|
+
"implementation" => jruby ? "jruby" : "ruby"
|
|
260
|
+
}
|
|
261
|
+
language["implementation_version"] = JRUBY_VERSION if jruby
|
|
256
262
|
expect(received_report["installation"]).to match(
|
|
257
263
|
"result" => {
|
|
258
264
|
"status" => "success"
|
|
259
265
|
},
|
|
260
|
-
"language" =>
|
|
261
|
-
"name" => "ruby",
|
|
262
|
-
"version" => "#{rbconfig["RUBY_PROGRAM_VERSION"]}-p#{rbconfig["PATCHLEVEL"]}",
|
|
263
|
-
"implementation" => jruby ? "jruby" : "ruby"
|
|
264
|
-
},
|
|
266
|
+
"language" => language,
|
|
265
267
|
"download" => {
|
|
266
268
|
"download_url" => kind_of(String),
|
|
267
269
|
"checksum" => "verified",
|
|
@@ -1357,6 +1359,7 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
1357
1359
|
shared_examples "diagnose file" do |shared_example_options|
|
|
1358
1360
|
let(:parent_directory) { File.join(tmp_dir, "diagnose_files") }
|
|
1359
1361
|
let(:file_path) { File.join(parent_directory, filename) }
|
|
1362
|
+
let(:path_key) { filename }
|
|
1360
1363
|
before { FileUtils.mkdir_p File.dirname(file_path) }
|
|
1361
1364
|
after { FileUtils.rm_rf parent_directory }
|
|
1362
1365
|
|
|
@@ -1387,7 +1390,7 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
1387
1390
|
end
|
|
1388
1391
|
|
|
1389
1392
|
it "transmits file data in report" do
|
|
1390
|
-
expect(received_report["paths"][
|
|
1393
|
+
expect(received_report["paths"][path_key]).to match(
|
|
1391
1394
|
"path" => file_path,
|
|
1392
1395
|
"exists" => true,
|
|
1393
1396
|
"type" => "file",
|
|
@@ -1418,7 +1421,7 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
1418
1421
|
end
|
|
1419
1422
|
|
|
1420
1423
|
it "transmits file data in report" do
|
|
1421
|
-
expect(received_report["paths"][
|
|
1424
|
+
expect(received_report["paths"][path_key]).to eq(
|
|
1422
1425
|
"path" => file_path,
|
|
1423
1426
|
"exists" => false
|
|
1424
1427
|
)
|
|
@@ -1439,20 +1442,22 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
1439
1442
|
end
|
|
1440
1443
|
|
|
1441
1444
|
it "transmits file data in report" do
|
|
1442
|
-
expect(received_report["paths"][
|
|
1445
|
+
expect(received_report["paths"][path_key]).to include(
|
|
1443
1446
|
"read_error" => "Errno::ESPIPE: Illegal seek"
|
|
1444
1447
|
)
|
|
1445
1448
|
end
|
|
1446
1449
|
end
|
|
1447
1450
|
end
|
|
1448
1451
|
|
|
1449
|
-
describe "mkmf.log" do
|
|
1452
|
+
describe "ext/mkmf.log" do
|
|
1450
1453
|
it_behaves_like "diagnose file" do
|
|
1451
|
-
let(:filename) {
|
|
1454
|
+
let(:filename) { "mkmf.log" }
|
|
1455
|
+
let(:path_key) { "ext/mkmf.log" }
|
|
1452
1456
|
before do
|
|
1453
|
-
expect_any_instance_of(Appsignal::CLI::Diagnose::Paths)
|
|
1457
|
+
expect_any_instance_of(Appsignal::CLI::Diagnose::Paths)
|
|
1458
|
+
.to receive(:makefile_install_log_path)
|
|
1454
1459
|
.at_least(:once)
|
|
1455
|
-
.and_return(parent_directory)
|
|
1460
|
+
.and_return(File.join(parent_directory, filename))
|
|
1456
1461
|
end
|
|
1457
1462
|
end
|
|
1458
1463
|
|
data/spec/lib/appsignal_spec.rb
CHANGED
|
@@ -553,46 +553,46 @@ describe Appsignal do
|
|
|
553
553
|
end
|
|
554
554
|
|
|
555
555
|
describe ".set_host_gauge" do
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
556
|
+
let(:err_stream) { std_stream }
|
|
557
|
+
let(:stderr) { err_stream.read }
|
|
558
|
+
let(:log_stream) { StringIO.new }
|
|
559
|
+
let(:logs) { log_contents(log_stream) }
|
|
560
|
+
let(:deprecation_message) do
|
|
561
|
+
"The `set_host_gauge` method has been deprecated. " \
|
|
562
|
+
"Calling this method has no effect. " \
|
|
563
|
+
"Please remove method call in the following file to remove " \
|
|
564
|
+
"this message."
|
|
559
565
|
end
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
Appsignal.set_host_gauge(:key, 1)
|
|
566
|
+
before do
|
|
567
|
+
Appsignal.logger = test_logger(log_stream)
|
|
568
|
+
capture_std_streams(std_stream, err_stream) { Appsignal.set_host_gauge("key", 0.1) }
|
|
564
569
|
end
|
|
565
570
|
|
|
566
|
-
it "
|
|
567
|
-
expect(
|
|
568
|
-
|
|
569
|
-
expect(Appsignal.logger).to receive(:warn)
|
|
570
|
-
.with("Host gauge value 10 for key 'key' is too big")
|
|
571
|
-
expect do
|
|
572
|
-
Appsignal.set_host_gauge("key", 10)
|
|
573
|
-
end.to_not raise_error
|
|
571
|
+
it "logs a deprecation warning" do
|
|
572
|
+
expect(stderr).to include("appsignal WARNING: #{deprecation_message}")
|
|
573
|
+
expect(logs).to include(deprecation_message)
|
|
574
574
|
end
|
|
575
575
|
end
|
|
576
576
|
|
|
577
577
|
describe ".set_process_gauge" do
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
578
|
+
let(:err_stream) { std_stream }
|
|
579
|
+
let(:stderr) { err_stream.read }
|
|
580
|
+
let(:log_stream) { StringIO.new }
|
|
581
|
+
let(:logs) { log_contents(log_stream) }
|
|
582
|
+
let(:deprecation_message) do
|
|
583
|
+
"The `set_process_gauge` method has been deprecated. " \
|
|
584
|
+
"Calling this method has no effect. " \
|
|
585
|
+
"Please remove method call in the following file to remove " \
|
|
586
|
+
"this message."
|
|
581
587
|
end
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
Appsignal.set_process_gauge(:key, 1)
|
|
588
|
+
before do
|
|
589
|
+
Appsignal.logger = test_logger(log_stream)
|
|
590
|
+
capture_std_streams(std_stream, err_stream) { Appsignal.set_process_gauge("key", 0.1) }
|
|
586
591
|
end
|
|
587
592
|
|
|
588
|
-
it "
|
|
589
|
-
expect(
|
|
590
|
-
|
|
591
|
-
expect(Appsignal.logger).to receive(:warn)
|
|
592
|
-
.with("Process gauge value 10 for key 'key' is too big")
|
|
593
|
-
expect do
|
|
594
|
-
Appsignal.set_process_gauge("key", 10)
|
|
595
|
-
end.to_not raise_error
|
|
593
|
+
it "logs a deprecation warning" do
|
|
594
|
+
expect(stderr).to include("appsignal WARNING: #{deprecation_message}")
|
|
595
|
+
expect(logs).to include(deprecation_message)
|
|
596
596
|
end
|
|
597
597
|
end
|
|
598
598
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appsignal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.4
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Beekman
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2024-01-
|
|
13
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rack
|