appsignal 3.5.3 → 3.5.4

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: 57cf433024d487874411fa33c709e6bfeee3610c6e096e86e9741630e7186399
4
- data.tar.gz: 6a3c4a5007787d7f92b829463d89681eef2c3276ce5362ec4fc6c9b7d7f14667
3
+ metadata.gz: 8a6954ece5998e4e0da9e07e3835f138ea1090f24fcae785268659c6756f24db
4
+ data.tar.gz: aec02be38c6030f17f62f82a3b625bd944145d8f74f0801a743f263e4be35a99
5
5
  SHA512:
6
- metadata.gz: 8639a8c55142c2c4b418318cca5ebf271d8b406b5755e53d430eb7db8506bceb9b68620517d1ae3a8b3d1ab94e54e2f3fd2f0d5cfa3e0fd216d59478b55c39ec
7
- data.tar.gz: 2ddc9aad40a80daf7b694023a12b4c09ec6b4601ff9b41e7e031693610c1d33718a83ebfa4b1a18625720d5a6cb6f795ebea01cd47f6bda0de49c6d95e522255
6
+ metadata.gz: '0549c6c428bdc4962f3e12ed3ca1f69672c337ae570c3785330c1fe54e47886d6d716d8c3f47178929b3f22eb3f31523d47494cf1f64bd2e96b572386d46737f'
7
+ data.tar.gz: 80caacd2803317991bdb0c8197b0ea339a17642e1325a1418bdb88a4111295199e685f6594cc2caf07b36f993e2dbaa7b3a67adb6faeac298baf41827fa39cad
@@ -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
@@ -16,6 +16,7 @@ task :default do
16
16
 
17
17
  library_type = "dynamic"
18
18
  report["language"]["implementation"] = "jruby"
19
+ report["language"]["implementation_version"] = JRUBY_VERSION
19
20
  report["build"]["library_type"] = library_type
20
21
  next unless check_architecture
21
22
 
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" => "c4fa9c0",
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" => "b0b1efb83588879f3c55958a5ff686b921e8ebe4705c8efe39bb7517dc686ca3",
17
+ "checksum" => "0985697683dc7f2bc0a353b637e3923a79b1945f730deceba73f65807cdcbb16",
18
18
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
19
19
  },
20
20
  "dynamic" => {
21
- "checksum" => "bddfe70a2279bcac77716a45108968ce6f326422f1b491b2fdafbf1f64e30535",
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" => "b0b1efb83588879f3c55958a5ff686b921e8ebe4705c8efe39bb7517dc686ca3",
27
+ "checksum" => "0985697683dc7f2bc0a353b637e3923a79b1945f730deceba73f65807cdcbb16",
28
28
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
29
29
  },
30
30
  "dynamic" => {
31
- "checksum" => "bddfe70a2279bcac77716a45108968ce6f326422f1b491b2fdafbf1f64e30535",
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" => "5297eb3de8b32ad8dd048f6589105fe07ffc770c97f528e7b95c4b9da760e619",
37
+ "checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
38
38
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
39
39
  },
40
40
  "dynamic" => {
41
- "checksum" => "84ad539adb57a85e5377c227b868bd82d835b1e23d96b0fa21df5fd23a52897d",
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" => "5297eb3de8b32ad8dd048f6589105fe07ffc770c97f528e7b95c4b9da760e619",
47
+ "checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
48
48
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
49
49
  },
50
50
  "dynamic" => {
51
- "checksum" => "84ad539adb57a85e5377c227b868bd82d835b1e23d96b0fa21df5fd23a52897d",
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" => "5297eb3de8b32ad8dd048f6589105fe07ffc770c97f528e7b95c4b9da760e619",
57
+ "checksum" => "8fe7adac3f265d47f9bff244b357b11551065c15542e22c5e5a10afa7d3d18f9",
58
58
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
59
59
  },
60
60
  "dynamic" => {
61
- "checksum" => "84ad539adb57a85e5377c227b868bd82d835b1e23d96b0fa21df5fd23a52897d",
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" => "a236dd63b9d3731cd2446e4d9a40b9326313aa9e907189f0c2d5aef57c88c65a",
67
+ "checksum" => "8278a46232ab0b88dfbd5276a7253f147a950ea0f55ebb104ef825a528d24b73",
68
68
  "filename" => "appsignal-aarch64-linux-all-static.tar.gz"
69
69
  },
70
70
  "dynamic" => {
71
- "checksum" => "09e6e5bfedb01f2c0510a8ace4a1d83330b7cc860b8af6067647ba55459642e7",
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" => "967d122b0ad911e23d8dbd433ae519e4e05e9f848a084b0f8ef31f2b8fdc38b2",
77
+ "checksum" => "2b0cfc65ccd05d1258719e73fc19323729100d02a33d936ba79bb12cdede3763",
78
78
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
79
79
  },
80
80
  "dynamic" => {
81
- "checksum" => "3dd9de5d6941c84e0aaaf5d56696c6bfab73edef6f8fcf9ae2a737dd574c1493",
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" => "967d122b0ad911e23d8dbd433ae519e4e05e9f848a084b0f8ef31f2b8fdc38b2",
87
+ "checksum" => "2b0cfc65ccd05d1258719e73fc19323729100d02a33d936ba79bb12cdede3763",
88
88
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
89
89
  },
90
90
  "dynamic" => {
91
- "checksum" => "3dd9de5d6941c84e0aaaf5d56696c6bfab73edef6f8fcf9ae2a737dd574c1493",
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" => "6519f8344fe6915b25c9e38b5839680d6df5268a6610608f8bb89c05aed9b4ce",
97
+ "checksum" => "10bafbef6445ea1a37529b34fb103dd48e185f61f19f58f573377127d03f6a60",
98
98
  "filename" => "appsignal-x86_64-linux-all-static.tar.gz"
99
99
  },
100
100
  "dynamic" => {
101
- "checksum" => "477cc6891d7cd02ac0b248e6d8ce01a67f9493c8749890923503588cc8c03ebd",
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" => "2fa6d7224d3a0af7f9205f61f580f6d786ce070254897d1538d3e48991f353cf",
107
+ "checksum" => "fba0b10a3dcac0854cd9d19773ab48649fc79a35261eacdfe28d6e70c267b98a",
108
108
  "filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
109
109
  },
110
110
  "dynamic" => {
111
- "checksum" => "456b5723be546944307cc124f2421a72a6677b59d99a52f3884a2e30c6f1fd68",
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" => "2aa31ff5929823c0564b30afac7fbbe6930792066247a2a94e4aa0b6e1d56661",
117
+ "checksum" => "98e8aafa0f688b1f1a9c37daf9e9cc1e36edc7e0ad65f86d8402469d15b6a1d6",
118
118
  "filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
119
119
  },
120
120
  "dynamic" => {
121
- "checksum" => "f829ccc04c7bcd10ca096ea7d566fcf36d7a12423a61edf537a642995b137dc2",
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" => "bf683c6d3cd39263b5e37b0b2b0e697f3e8a1f7e5a76d2ab1d25f42a973e69c2",
127
+ "checksum" => "09ebc6406d81fdf81b2e76bef6c1344f34292e1b3727f7fc984c8df5c7698db5",
128
128
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
129
129
  },
130
130
  "dynamic" => {
131
- "checksum" => "23aa6f6ee7df1cc720a9bb600807629a6dbc83c6ee6634071c9f11fb423bd46c",
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" => "bf683c6d3cd39263b5e37b0b2b0e697f3e8a1f7e5a76d2ab1d25f42a973e69c2",
137
+ "checksum" => "09ebc6406d81fdf81b2e76bef6c1344f34292e1b3727f7fc984c8df5c7698db5",
138
138
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
139
139
  },
140
140
  "dynamic" => {
141
- "checksum" => "23aa6f6ee7df1cc720a9bb600807629a6dbc83c6ee6634071c9f11fb423bd46c",
141
+ "checksum" => "cdab19e2e6d5f6ad15f3d87f735cd867e7c54db0412c893c39de3521afd9b6d3",
142
142
  "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
143
143
  }
144
144
  }
@@ -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" => "#{rbconfig["RUBY_PROGRAM_VERSION"]}-p#{rbconfig["PATCHLEVEL"]}"
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
- makefile_log_path => {
39
+ "ext/mkmf.log" => {
41
40
  :label => "Makefile install log",
42
- :path => File.join(gem_path, makefile_log_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 => File.exist?(path)
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
- File.expand_path("../../../..", __dir__)
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(key, value)
18
- Appsignal::Extension.set_host_gauge(key.to_s, value.to_f)
19
- rescue RangeError
20
- Appsignal.logger
21
- .warn("Host gauge value #{value} for key '#{key}' is too big")
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(key, value)
25
- Appsignal::Extension.set_process_gauge(key.to_s, value.to_f)
26
- rescue RangeError
27
- Appsignal.logger
28
- .warn("Process gauge value #{value} for key '#{key}' is too big")
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 = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.5.3"
4
+ VERSION = "3.5.4"
5
5
  end
@@ -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"][filename]).to match(
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"][filename]).to eq(
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"][filename]).to include(
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) { File.join("ext", "mkmf.log") }
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).to receive(:gem_path)
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
 
@@ -553,46 +553,46 @@ describe Appsignal do
553
553
  end
554
554
 
555
555
  describe ".set_host_gauge" do
556
- it "should call set_host_gauge on the extension with a string key and float" do
557
- expect(Appsignal::Extension).to receive(:set_host_gauge).with("key", 0.1)
558
- Appsignal.set_host_gauge("key", 0.1)
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
- it "should call set_host_gauge on the extension with a symbol key and int" do
562
- expect(Appsignal::Extension).to receive(:set_host_gauge).with("key", 1.0)
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 "should not raise an exception when out of range" do
567
- expect(Appsignal::Extension).to receive(:set_host_gauge).with("key",
568
- 10).and_raise(RangeError)
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
- it "should call set_process_gauge on the extension with a string key and float" do
579
- expect(Appsignal::Extension).to receive(:set_process_gauge).with("key", 0.1)
580
- Appsignal.set_process_gauge("key", 0.1)
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
- it "should call set_process_gauge on the extension with a symbol key and int" do
584
- expect(Appsignal::Extension).to receive(:set_process_gauge).with("key", 1.0)
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 "should not raise an exception when out of range" do
589
- expect(Appsignal::Extension).to receive(:set_process_gauge).with("key",
590
- 10).and_raise(RangeError)
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.3
4
+ version: 3.5.4
5
5
  platform: ruby
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-04 00:00:00.000000000 Z
13
+ date: 2024-01-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack