appsignal 3.3.0-java → 3.3.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2384f72a5c1594de99771fc9fd8b8710a25f6abb50bd42255c6dedfb2d6cc6ef
4
- data.tar.gz: 0e28bada60eaf3ffbaa776e5c14cf2ed204af935d1e6183a5efe00f5cc4dcea5
3
+ metadata.gz: 57621f6b6eff53ef1a9c3575bf519d9b57f538eeab72df52f7afc45d9cb9e52a
4
+ data.tar.gz: 7a9c6cdfd0c9caba31cbe1e75512ebe30c95a765b7525c408e64829741338cc5
5
5
  SHA512:
6
- metadata.gz: 7628df56fbf62dd4b9e7d0eda95261c24f47f886c54bf41acb0f48f8971578b1b8d45a857a9f3ab69049290aaebcb2a06d958b4949d9cc98d0a9b39b24b54cc4
7
- data.tar.gz: e7be539740c14370c8b8b1ba48ae882599260b2d012bd2258821112a2c7901a266d1cf18159aa7bd175dcecb672f2772018016ffa062da5947e350de76241942
6
+ metadata.gz: b0493c3d08579b07bc3a6b2e2924182d93ef328d4acd090c30b025a2c5dd2ad5ea677e810df82e790bf2b69ea3aba6fd1c07c07690f0ec2ed664af3e8b48e78c
7
+ data.tar.gz: 705da620256f6da906384891e5c38c53a00b761d65957f2e6145beb7f18cbd7df0259193fa8489609838873718ac978e6648efb27e6107dbb4c6fcea28d04899
@@ -24,12 +24,6 @@ global_job_config:
24
24
  commands:
25
25
  - checkout
26
26
  - rm -f $HOME/.rbenv/plugins/rbenv-gem-rehash/etc/rbenv.d/exec/~gem-rehash.bash
27
- - |
28
- if [ -n "$_LIBYAML" ]; then
29
- install-package --update libyaml-dev
30
- else
31
- echo Skipping libyaml-dev install
32
- fi
33
27
  - |
34
28
  if [ -n "$_C_VERSION" ]; then
35
29
  sem-version c $_C_VERSION
@@ -349,9 +343,9 @@ blocks:
349
343
  - name: BUNDLE_GEMFILE
350
344
  value: gemfiles/no_dependencies.gemfile
351
345
  - name: _RUBYGEMS_VERSION
352
- value: latest
346
+ value: 3.3.26
353
347
  - name: _BUNDLER_VERSION
354
- value: latest
348
+ value: 2.3.26
355
349
  commands:
356
350
  - "./support/bundler_wrapper exec rake test"
357
351
  - "./support/bundler_wrapper exec rake test:failure"
@@ -1959,7 +1953,7 @@ blocks:
1959
1953
  value: latest
1960
1954
  commands:
1961
1955
  - "./support/bundler_wrapper exec rake test"
1962
- - name: Ruby 3.2.0-rc1
1956
+ - name: Ruby 3.2.0
1963
1957
  dependencies:
1964
1958
  - Validation
1965
1959
  task:
@@ -1975,14 +1969,14 @@ blocks:
1975
1969
  - "./support/bundler_wrapper exec rake extension:install"
1976
1970
  epilogue: *1
1977
1971
  jobs:
1978
- - name: Ruby 3.2.0-rc1 for no_dependencies
1972
+ - name: Ruby 3.2.0 for no_dependencies
1979
1973
  env_vars:
1980
1974
  - *2
1981
1975
  - *3
1982
1976
  - *4
1983
1977
  - *5
1984
1978
  - name: RUBY_VERSION
1985
- value: 3.2.0-rc1
1979
+ value: 3.2.0
1986
1980
  - name: GEMSET
1987
1981
  value: no_dependencies
1988
1982
  - name: BUNDLE_GEMFILE
@@ -1991,18 +1985,12 @@ blocks:
1991
1985
  value: latest
1992
1986
  - name: _BUNDLER_VERSION
1993
1987
  value: latest
1994
- - &6
1995
- name: _LIBYAML
1996
- value: '1'
1997
- - &7
1998
- name: RUBY_CFLAGS
1999
- value: "-std=gnu99"
2000
1988
  commands:
2001
1989
  - "./support/bundler_wrapper exec rake test"
2002
1990
  - "./support/bundler_wrapper exec rake test:failure"
2003
- - name: Ruby 3.2.0-rc1 - Gems
1991
+ - name: Ruby 3.2.0 - Gems
2004
1992
  dependencies:
2005
- - Ruby 3.2.0-rc1
1993
+ - Ruby 3.2.0
2006
1994
  task:
2007
1995
  prologue:
2008
1996
  commands:
@@ -2016,14 +2004,14 @@ blocks:
2016
2004
  - "./support/bundler_wrapper exec rake extension:install"
2017
2005
  epilogue: *1
2018
2006
  jobs:
2019
- - name: Ruby 3.2.0-rc1 for capistrano2
2007
+ - name: Ruby 3.2.0 for capistrano2
2020
2008
  env_vars:
2021
2009
  - *2
2022
2010
  - *3
2023
2011
  - *4
2024
2012
  - *5
2025
2013
  - name: RUBY_VERSION
2026
- value: 3.2.0-rc1
2014
+ value: 3.2.0
2027
2015
  - name: GEMSET
2028
2016
  value: capistrano2
2029
2017
  - name: BUNDLE_GEMFILE
@@ -2032,18 +2020,16 @@ blocks:
2032
2020
  value: latest
2033
2021
  - name: _BUNDLER_VERSION
2034
2022
  value: latest
2035
- - *6
2036
- - *7
2037
2023
  commands:
2038
2024
  - "./support/bundler_wrapper exec rake test"
2039
- - name: Ruby 3.2.0-rc1 for capistrano3
2025
+ - name: Ruby 3.2.0 for capistrano3
2040
2026
  env_vars:
2041
2027
  - *2
2042
2028
  - *3
2043
2029
  - *4
2044
2030
  - *5
2045
2031
  - name: RUBY_VERSION
2046
- value: 3.2.0-rc1
2032
+ value: 3.2.0
2047
2033
  - name: GEMSET
2048
2034
  value: capistrano3
2049
2035
  - name: BUNDLE_GEMFILE
@@ -2052,18 +2038,16 @@ blocks:
2052
2038
  value: latest
2053
2039
  - name: _BUNDLER_VERSION
2054
2040
  value: latest
2055
- - *6
2056
- - *7
2057
2041
  commands:
2058
2042
  - "./support/bundler_wrapper exec rake test"
2059
- - name: Ruby 3.2.0-rc1 for grape
2043
+ - name: Ruby 3.2.0 for grape
2060
2044
  env_vars:
2061
2045
  - *2
2062
2046
  - *3
2063
2047
  - *4
2064
2048
  - *5
2065
2049
  - name: RUBY_VERSION
2066
- value: 3.2.0-rc1
2050
+ value: 3.2.0
2067
2051
  - name: GEMSET
2068
2052
  value: grape
2069
2053
  - name: BUNDLE_GEMFILE
@@ -2072,18 +2056,16 @@ blocks:
2072
2056
  value: latest
2073
2057
  - name: _BUNDLER_VERSION
2074
2058
  value: latest
2075
- - *6
2076
- - *7
2077
2059
  commands:
2078
2060
  - "./support/bundler_wrapper exec rake test"
2079
- - name: Ruby 3.2.0-rc1 for hanami
2061
+ - name: Ruby 3.2.0 for hanami
2080
2062
  env_vars:
2081
2063
  - *2
2082
2064
  - *3
2083
2065
  - *4
2084
2066
  - *5
2085
2067
  - name: RUBY_VERSION
2086
- value: 3.2.0-rc1
2068
+ value: 3.2.0
2087
2069
  - name: GEMSET
2088
2070
  value: hanami
2089
2071
  - name: BUNDLE_GEMFILE
@@ -2092,18 +2074,16 @@ blocks:
2092
2074
  value: latest
2093
2075
  - name: _BUNDLER_VERSION
2094
2076
  value: latest
2095
- - *6
2096
- - *7
2097
2077
  commands:
2098
2078
  - "./support/bundler_wrapper exec rake test"
2099
- - name: Ruby 3.2.0-rc1 for http5
2079
+ - name: Ruby 3.2.0 for http5
2100
2080
  env_vars:
2101
2081
  - *2
2102
2082
  - *3
2103
2083
  - *4
2104
2084
  - *5
2105
2085
  - name: RUBY_VERSION
2106
- value: 3.2.0-rc1
2086
+ value: 3.2.0
2107
2087
  - name: GEMSET
2108
2088
  value: http5
2109
2089
  - name: BUNDLE_GEMFILE
@@ -2112,18 +2092,16 @@ blocks:
2112
2092
  value: latest
2113
2093
  - name: _BUNDLER_VERSION
2114
2094
  value: latest
2115
- - *6
2116
- - *7
2117
2095
  commands:
2118
2096
  - "./support/bundler_wrapper exec rake test"
2119
- - name: Ruby 3.2.0-rc1 for padrino
2097
+ - name: Ruby 3.2.0 for padrino
2120
2098
  env_vars:
2121
2099
  - *2
2122
2100
  - *3
2123
2101
  - *4
2124
2102
  - *5
2125
2103
  - name: RUBY_VERSION
2126
- value: 3.2.0-rc1
2104
+ value: 3.2.0
2127
2105
  - name: GEMSET
2128
2106
  value: padrino
2129
2107
  - name: BUNDLE_GEMFILE
@@ -2132,18 +2110,16 @@ blocks:
2132
2110
  value: latest
2133
2111
  - name: _BUNDLER_VERSION
2134
2112
  value: latest
2135
- - *6
2136
- - *7
2137
2113
  commands:
2138
2114
  - "./support/bundler_wrapper exec rake test"
2139
- - name: Ruby 3.2.0-rc1 for psych-3
2115
+ - name: Ruby 3.2.0 for psych-3
2140
2116
  env_vars:
2141
2117
  - *2
2142
2118
  - *3
2143
2119
  - *4
2144
2120
  - *5
2145
2121
  - name: RUBY_VERSION
2146
- value: 3.2.0-rc1
2122
+ value: 3.2.0
2147
2123
  - name: GEMSET
2148
2124
  value: psych-3
2149
2125
  - name: BUNDLE_GEMFILE
@@ -2152,18 +2128,16 @@ blocks:
2152
2128
  value: latest
2153
2129
  - name: _BUNDLER_VERSION
2154
2130
  value: latest
2155
- - *6
2156
- - *7
2157
2131
  commands:
2158
2132
  - "./support/bundler_wrapper exec rake test"
2159
- - name: Ruby 3.2.0-rc1 for psych-4
2133
+ - name: Ruby 3.2.0 for psych-4
2160
2134
  env_vars:
2161
2135
  - *2
2162
2136
  - *3
2163
2137
  - *4
2164
2138
  - *5
2165
2139
  - name: RUBY_VERSION
2166
- value: 3.2.0-rc1
2140
+ value: 3.2.0
2167
2141
  - name: GEMSET
2168
2142
  value: psych-4
2169
2143
  - name: BUNDLE_GEMFILE
@@ -2172,18 +2146,16 @@ blocks:
2172
2146
  value: latest
2173
2147
  - name: _BUNDLER_VERSION
2174
2148
  value: latest
2175
- - *6
2176
- - *7
2177
2149
  commands:
2178
2150
  - "./support/bundler_wrapper exec rake test"
2179
- - name: Ruby 3.2.0-rc1 for que
2151
+ - name: Ruby 3.2.0 for que
2180
2152
  env_vars:
2181
2153
  - *2
2182
2154
  - *3
2183
2155
  - *4
2184
2156
  - *5
2185
2157
  - name: RUBY_VERSION
2186
- value: 3.2.0-rc1
2158
+ value: 3.2.0
2187
2159
  - name: GEMSET
2188
2160
  value: que
2189
2161
  - name: BUNDLE_GEMFILE
@@ -2192,18 +2164,16 @@ blocks:
2192
2164
  value: latest
2193
2165
  - name: _BUNDLER_VERSION
2194
2166
  value: latest
2195
- - *6
2196
- - *7
2197
2167
  commands:
2198
2168
  - "./support/bundler_wrapper exec rake test"
2199
- - name: Ruby 3.2.0-rc1 for que_beta
2169
+ - name: Ruby 3.2.0 for que_beta
2200
2170
  env_vars:
2201
2171
  - *2
2202
2172
  - *3
2203
2173
  - *4
2204
2174
  - *5
2205
2175
  - name: RUBY_VERSION
2206
- value: 3.2.0-rc1
2176
+ value: 3.2.0
2207
2177
  - name: GEMSET
2208
2178
  value: que_beta
2209
2179
  - name: BUNDLE_GEMFILE
@@ -2212,18 +2182,16 @@ blocks:
2212
2182
  value: latest
2213
2183
  - name: _BUNDLER_VERSION
2214
2184
  value: latest
2215
- - *6
2216
- - *7
2217
2185
  commands:
2218
2186
  - "./support/bundler_wrapper exec rake test"
2219
- - name: Ruby 3.2.0-rc1 for rails-6.1
2187
+ - name: Ruby 3.2.0 for rails-6.1
2220
2188
  env_vars:
2221
2189
  - *2
2222
2190
  - *3
2223
2191
  - *4
2224
2192
  - *5
2225
2193
  - name: RUBY_VERSION
2226
- value: 3.2.0-rc1
2194
+ value: 3.2.0
2227
2195
  - name: GEMSET
2228
2196
  value: rails-6.1
2229
2197
  - name: BUNDLE_GEMFILE
@@ -2232,18 +2200,16 @@ blocks:
2232
2200
  value: latest
2233
2201
  - name: _BUNDLER_VERSION
2234
2202
  value: latest
2235
- - *6
2236
- - *7
2237
2203
  commands:
2238
2204
  - "./support/bundler_wrapper exec rake test"
2239
- - name: Ruby 3.2.0-rc1 for rails-7.0
2205
+ - name: Ruby 3.2.0 for rails-7.0
2240
2206
  env_vars:
2241
2207
  - *2
2242
2208
  - *3
2243
2209
  - *4
2244
2210
  - *5
2245
2211
  - name: RUBY_VERSION
2246
- value: 3.2.0-rc1
2212
+ value: 3.2.0
2247
2213
  - name: GEMSET
2248
2214
  value: rails-7.0
2249
2215
  - name: BUNDLE_GEMFILE
@@ -2252,18 +2218,16 @@ blocks:
2252
2218
  value: latest
2253
2219
  - name: _BUNDLER_VERSION
2254
2220
  value: latest
2255
- - *6
2256
- - *7
2257
2221
  commands:
2258
2222
  - "./support/bundler_wrapper exec rake test"
2259
- - name: Ruby 3.2.0-rc1 for resque-2
2223
+ - name: Ruby 3.2.0 for resque-2
2260
2224
  env_vars:
2261
2225
  - *2
2262
2226
  - *3
2263
2227
  - *4
2264
2228
  - *5
2265
2229
  - name: RUBY_VERSION
2266
- value: 3.2.0-rc1
2230
+ value: 3.2.0
2267
2231
  - name: GEMSET
2268
2232
  value: resque-2
2269
2233
  - name: BUNDLE_GEMFILE
@@ -2272,18 +2236,16 @@ blocks:
2272
2236
  value: latest
2273
2237
  - name: _BUNDLER_VERSION
2274
2238
  value: latest
2275
- - *6
2276
- - *7
2277
2239
  commands:
2278
2240
  - "./support/bundler_wrapper exec rake test"
2279
- - name: Ruby 3.2.0-rc1 for sequel
2241
+ - name: Ruby 3.2.0 for sequel
2280
2242
  env_vars:
2281
2243
  - *2
2282
2244
  - *3
2283
2245
  - *4
2284
2246
  - *5
2285
2247
  - name: RUBY_VERSION
2286
- value: 3.2.0-rc1
2248
+ value: 3.2.0
2287
2249
  - name: GEMSET
2288
2250
  value: sequel
2289
2251
  - name: BUNDLE_GEMFILE
@@ -2292,18 +2254,16 @@ blocks:
2292
2254
  value: latest
2293
2255
  - name: _BUNDLER_VERSION
2294
2256
  value: latest
2295
- - *6
2296
- - *7
2297
2257
  commands:
2298
2258
  - "./support/bundler_wrapper exec rake test"
2299
- - name: Ruby 3.2.0-rc1 for sinatra
2259
+ - name: Ruby 3.2.0 for sinatra
2300
2260
  env_vars:
2301
2261
  - *2
2302
2262
  - *3
2303
2263
  - *4
2304
2264
  - *5
2305
2265
  - name: RUBY_VERSION
2306
- value: 3.2.0-rc1
2266
+ value: 3.2.0
2307
2267
  - name: GEMSET
2308
2268
  value: sinatra
2309
2269
  - name: BUNDLE_GEMFILE
@@ -2312,18 +2272,16 @@ blocks:
2312
2272
  value: latest
2313
2273
  - name: _BUNDLER_VERSION
2314
2274
  value: latest
2315
- - *6
2316
- - *7
2317
2275
  commands:
2318
2276
  - "./support/bundler_wrapper exec rake test"
2319
- - name: Ruby 3.2.0-rc1 for webmachine
2277
+ - name: Ruby 3.2.0 for webmachine
2320
2278
  env_vars:
2321
2279
  - *2
2322
2280
  - *3
2323
2281
  - *4
2324
2282
  - *5
2325
2283
  - name: RUBY_VERSION
2326
- value: 3.2.0-rc1
2284
+ value: 3.2.0
2327
2285
  - name: GEMSET
2328
2286
  value: webmachine
2329
2287
  - name: BUNDLE_GEMFILE
@@ -2332,8 +2290,6 @@ blocks:
2332
2290
  value: latest
2333
2291
  - name: _BUNDLER_VERSION
2334
2292
  value: latest
2335
- - *6
2336
- - *7
2337
2293
  commands:
2338
2294
  - "./support/bundler_wrapper exec rake test"
2339
2295
  - name: Ruby jruby-9.3.9.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.3.2
4
+
5
+ ### Changed
6
+
7
+ - [d1b960f0](https://github.com/appsignal/appsignal-ruby/commit/d1b960f0350b55962621d740e6a92922b334ab49) patch - Reduce our dependency on YAML during installation. Instead of a YAML file with details about the extension download location, use a pure Ruby file. This is a partial fix for the installation issue involving psych version 5.
8
+
9
+ ### Fixed
10
+
11
+ - [e1e598ae](https://github.com/appsignal/appsignal-ruby/commit/e1e598ae51512a51486446e5751e504d4fc90ef0) patch - Skip the `.gemrc` config during installation if it raises an error loading it. This can be caused when the psych gem version 5 is installed on Ruby < 3.2. Use the `HTTP_PROXY` environment variable instead to configure the HTTP proxy that should be used during installation.
12
+
13
+ ## 3.3.1
14
+
15
+ ### Added
16
+
17
+ - [7f62ada8](https://github.com/appsignal/appsignal-ruby/commit/7f62ada8deb67a2b7d355ec0c1bc2ad1d1e2d8d1) patch - Track the Operating System release/distro in the diagnose report. This helps us with debugging what exact version of Linux an app is running on, for example.
18
+
19
+ ### Fixed
20
+
21
+ - [1443e05f](https://github.com/appsignal/appsignal-ruby/commit/1443e05f0fa5bf6af69c40753b2d135f082871de) patch - Attempt to load C extension from lib/ directory. Fixes an issue where JRuby would fail to load
22
+ the extension from the ext/ directory, as the directory is cleaned after installation when using
23
+ RubyGems 3.4.0.
24
+
3
25
  ## 3.3.0
4
26
 
5
27
  ### Added
data/build_matrix.yml CHANGED
@@ -25,12 +25,6 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
25
25
  commands:
26
26
  - checkout
27
27
  - rm -f $HOME/.rbenv/plugins/rbenv-gem-rehash/etc/rbenv.d/exec/~gem-rehash.bash
28
- - |
29
- if [ -n "$_LIBYAML" ]; then
30
- install-package --update libyaml-dev
31
- else
32
- echo Skipping libyaml-dev install
33
- fi
34
28
  - |
35
29
  if [ -n "$_C_VERSION" ]; then
36
30
  sem-version c $_C_VERSION
@@ -197,6 +191,8 @@ matrix:
197
191
  gems: "none"
198
192
  - ruby: "2.3.8"
199
193
  gems: "none"
194
+ rubygems: "3.3.26"
195
+ bundler: "2.3.26"
200
196
  - ruby: "2.4.10"
201
197
  gems: "none"
202
198
  - ruby: "2.5.8"
@@ -205,12 +201,7 @@ matrix:
205
201
  - ruby: "2.7.7"
206
202
  - ruby: "3.0.4"
207
203
  - ruby: "3.1.2"
208
- - ruby: "3.2.0-rc1"
209
- env_vars:
210
- - name: "_LIBYAML"
211
- value: "1"
212
- - name: "RUBY_CFLAGS"
213
- value: "-std=gnu99"
204
+ - ruby: "3.2.0"
214
205
  - ruby: "jruby-9.3.9.0"
215
206
  gems: "minimal"
216
207
  - ruby: "jruby-9.4.0.0"
@@ -225,7 +216,7 @@ matrix:
225
216
  ruby:
226
217
  - "3.0.4"
227
218
  - "3.1.2"
228
- - "3.2.0-rc1"
219
+ - "3.2.0"
229
220
  - gem: "http5"
230
221
  - gem: "padrino"
231
222
  - gem: "psych-3"
@@ -233,13 +224,13 @@ matrix:
233
224
  ruby:
234
225
  - "3.0.4"
235
226
  - "3.1.2"
236
- - "3.2.0-rc1"
227
+ - "3.2.0"
237
228
  - gem: "psych-4"
238
229
  only:
239
230
  ruby:
240
231
  - "3.0.4"
241
232
  - "3.1.2"
242
- - "3.2.0-rc1"
233
+ - "3.2.0"
243
234
  - gem: "que"
244
235
  - gem: "que_beta"
245
236
  - gem: "rails-3.2"
@@ -312,7 +303,7 @@ matrix:
312
303
  - "2.7.7"
313
304
  - "3.0.4"
314
305
  - "3.1.2"
315
- - "3.2.0-rc1"
306
+ - "3.2.0"
316
307
  - "jruby-9.4.0.0"
317
308
  - gem: "rails-7.0"
318
309
  only:
@@ -320,7 +311,7 @@ matrix:
320
311
  - "2.7.7"
321
312
  - "3.0.4"
322
313
  - "3.1.2"
323
- - "3.2.0-rc1"
314
+ - "3.2.0"
324
315
  - "jruby-9.4.0.0"
325
316
  - gem: "resque-1"
326
317
  bundler: "1.17.3"
data/ext/agent.rb ADDED
@@ -0,0 +1,144 @@
1
+ # DO NOT EDIT
2
+ # This is a generated file by the `rake ship` family of tasks in the
3
+ # appsignal-agent repository.
4
+ # Modifications to this file will be overwritten with the next agent release.
5
+
6
+ APPSIGNAL_AGENT_CONFIG = {
7
+ "version" => "c0e80b9",
8
+ "mirrors" => [
9
+ "https://appsignal-agent-releases.global.ssl.fastly.net",
10
+ "https://d135dj0rjqvssy.cloudfront.net"
11
+ ],
12
+ "triples" => {
13
+ "x86_64-darwin" => {
14
+ "static" => {
15
+ "checksum" => "c0e1fc966eff49dd942ed07b44f5c5db6be41676f4e35530c300bac8f99e03c4",
16
+ "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
17
+ },
18
+ "dynamic" => {
19
+ "checksum" => "38805c50262c9dbc5c4e7479d274b5e41d6df6e86e6c09d76b9f3f471dcf8787",
20
+ "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
21
+ }
22
+ },
23
+ "universal-darwin" => {
24
+ "static" => {
25
+ "checksum" => "c0e1fc966eff49dd942ed07b44f5c5db6be41676f4e35530c300bac8f99e03c4",
26
+ "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
27
+ },
28
+ "dynamic" => {
29
+ "checksum" => "38805c50262c9dbc5c4e7479d274b5e41d6df6e86e6c09d76b9f3f471dcf8787",
30
+ "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
31
+ }
32
+ },
33
+ "aarch64-darwin" => {
34
+ "static" => {
35
+ "checksum" => "37fcdf17250ce9e2149f28a8492074f5957691636ab542c7073b323a1b9dbdd8",
36
+ "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
37
+ },
38
+ "dynamic" => {
39
+ "checksum" => "0fe962abf0885888f38d1767b959ea25ea8c4b38813d7a23fbebe2aa62873341",
40
+ "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
41
+ }
42
+ },
43
+ "arm64-darwin" => {
44
+ "static" => {
45
+ "checksum" => "37fcdf17250ce9e2149f28a8492074f5957691636ab542c7073b323a1b9dbdd8",
46
+ "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
47
+ },
48
+ "dynamic" => {
49
+ "checksum" => "0fe962abf0885888f38d1767b959ea25ea8c4b38813d7a23fbebe2aa62873341",
50
+ "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
51
+ }
52
+ },
53
+ "arm-darwin" => {
54
+ "static" => {
55
+ "checksum" => "37fcdf17250ce9e2149f28a8492074f5957691636ab542c7073b323a1b9dbdd8",
56
+ "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
57
+ },
58
+ "dynamic" => {
59
+ "checksum" => "0fe962abf0885888f38d1767b959ea25ea8c4b38813d7a23fbebe2aa62873341",
60
+ "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
61
+ }
62
+ },
63
+ "aarch64-linux" => {
64
+ "static" => {
65
+ "checksum" => "ce9075ee5bc14ea786b734793b6bb6331567398cab6a21f2ceaa9062cfbdb373",
66
+ "filename" => "appsignal-aarch64-linux-all-static.tar.gz"
67
+ },
68
+ "dynamic" => {
69
+ "checksum" => "eb798538e0e32b19de0afba924c3cb8979a5e57433de4b1a12a6aeaf7233929b",
70
+ "filename" => "appsignal-aarch64-linux-all-dynamic.tar.gz"
71
+ }
72
+ },
73
+ "i686-linux" => {
74
+ "static" => {
75
+ "checksum" => "ea3d1a29cf1534293738f2bd27ae29b8addf8dbe34dde77dc4ae150e109e2e4f",
76
+ "filename" => "appsignal-i686-linux-all-static.tar.gz"
77
+ },
78
+ "dynamic" => {
79
+ "checksum" => "add159ec5bcf1b1a3362c08f9f765230d99c0431c567d845e31c51389792a51c",
80
+ "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
81
+ }
82
+ },
83
+ "x86-linux" => {
84
+ "static" => {
85
+ "checksum" => "ea3d1a29cf1534293738f2bd27ae29b8addf8dbe34dde77dc4ae150e109e2e4f",
86
+ "filename" => "appsignal-i686-linux-all-static.tar.gz"
87
+ },
88
+ "dynamic" => {
89
+ "checksum" => "add159ec5bcf1b1a3362c08f9f765230d99c0431c567d845e31c51389792a51c",
90
+ "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
91
+ }
92
+ },
93
+ "x86_64-linux" => {
94
+ "static" => {
95
+ "checksum" => "adeceb091c4ed277c29eda018ffc61fd064e5c486b2b0a239b26873168a7fdb0",
96
+ "filename" => "appsignal-x86_64-linux-all-static.tar.gz"
97
+ },
98
+ "dynamic" => {
99
+ "checksum" => "121abc5d34db302c130cf49ce1dad032025e6717efd63f5cf04ba0b55b5fc863",
100
+ "filename" => "appsignal-x86_64-linux-all-dynamic.tar.gz"
101
+ }
102
+ },
103
+ "x86_64-linux-musl" => {
104
+ "static" => {
105
+ "checksum" => "b57aec8c334b1d3646c80d87f20372287e4e2bdbd798c195e0e36ceeb2aac68a",
106
+ "filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
107
+ },
108
+ "dynamic" => {
109
+ "checksum" => "67a918b1848f979afe01eb56ce1661fb5b5910d4c7d691fcf0e304203bd7bd7a",
110
+ "filename" => "appsignal-x86_64-linux-musl-all-dynamic.tar.gz"
111
+ }
112
+ },
113
+ "aarch64-linux-musl" => {
114
+ "static" => {
115
+ "checksum" => "fc780524942fc7aeaa4cabec64dfc104c82969df7e8b5cd0fa8eae24c1c9b304",
116
+ "filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
117
+ },
118
+ "dynamic" => {
119
+ "checksum" => "92ed33ca9f402f9e822e5777b291f7a062545767ea92dea7eaa94db4f82d8130",
120
+ "filename" => "appsignal-aarch64-linux-musl-all-dynamic.tar.gz"
121
+ }
122
+ },
123
+ "x86_64-freebsd" => {
124
+ "static" => {
125
+ "checksum" => "574137de415487afe8d2cc29eac3b1fda2c8e1001474b8f25ebee0cbb32fb1ca",
126
+ "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
127
+ },
128
+ "dynamic" => {
129
+ "checksum" => "9dcc3454c14e8a7a0d7250b35864b6f0f205d5c730ca510e7b77628e024a703f",
130
+ "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
131
+ }
132
+ },
133
+ "amd64-freebsd" => {
134
+ "static" => {
135
+ "checksum" => "574137de415487afe8d2cc29eac3b1fda2c8e1001474b8f25ebee0cbb32fb1ca",
136
+ "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
137
+ },
138
+ "dynamic" => {
139
+ "checksum" => "9dcc3454c14e8a7a0d7250b35864b6f0f205d5c730ca510e7b77628e024a703f",
140
+ "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
141
+ }
142
+ }
143
+ }
144
+ }.freeze
data/ext/base.rb CHANGED
@@ -3,18 +3,17 @@ require "fileutils"
3
3
  require "open-uri"
4
4
  require "zlib"
5
5
  require "json"
6
- require "yaml"
7
6
  require "rubygems/package"
8
7
  require File.expand_path("../../lib/appsignal/version.rb", __FILE__)
9
8
  require File.expand_path("../../lib/appsignal/system.rb", __FILE__)
9
+ require_relative "./agent"
10
10
 
11
- EXT_PATH = File.expand_path("..", __FILE__).freeze
12
- AGENT_CONFIG = YAML.load(File.read(File.join(EXT_PATH, "agent.yml"))).freeze
11
+ EXT_PATH = File.expand_path("..", __FILE__).freeze
13
12
 
14
13
  AGENT_PLATFORM = Appsignal::System.agent_platform
15
14
  AGENT_ARCHITECTURE = Appsignal::System.agent_architecture
16
15
  TARGET_TRIPLE = "#{AGENT_ARCHITECTURE}-#{AGENT_PLATFORM}".freeze
17
- ARCH_CONFIG = AGENT_CONFIG["triples"][TARGET_TRIPLE].freeze
16
+ ARCH_CONFIG = APPSIGNAL_AGENT_CONFIG["triples"][TARGET_TRIPLE].freeze
18
17
  CA_CERT_PATH = File.join(EXT_PATH, "../resources/cacert.pem").freeze
19
18
 
20
19
  def ext_path(path)
@@ -34,8 +33,7 @@ def report
34
33
  "version" => "#{rbconfig["RUBY_PROGRAM_VERSION"]}-p#{rbconfig["PATCHLEVEL"]}"
35
34
  },
36
35
  "download" => {
37
- "checksum" => "unverified",
38
- "http_proxy" => http_proxy
36
+ "checksum" => "unverified"
39
37
  },
40
38
  "build" => {
41
39
  "time" => Time.now.utc,
@@ -55,7 +53,11 @@ def report
55
53
  d["libc"] = ldd_version if ldd_version
56
54
  end
57
55
  }
58
- }
56
+ }.tap do |r|
57
+ proxy, error = http_proxy
58
+ r["download"]["http_proxy"] = proxy
59
+ r["download"]["http_proxy_error"] = error if error
60
+ end
59
61
  end
60
62
  end
61
63
 
@@ -97,7 +99,7 @@ def installation_succeeded?
97
99
  end
98
100
 
99
101
  def check_architecture
100
- if AGENT_CONFIG["triples"].key?(TARGET_TRIPLE)
102
+ if APPSIGNAL_AGENT_CONFIG["triples"].key?(TARGET_TRIPLE)
101
103
  true
102
104
  else
103
105
  abort_installation(
@@ -113,26 +115,27 @@ def download_archive(type)
113
115
  unless ARCH_CONFIG.key?(type)
114
116
  abort_installation(
115
117
  "AppSignal currently does not support your system. " \
116
- "Expected config for architecture '#{arch}' and package type '#{type}', but none found. " \
117
- "For a full list of supported systems visit: " \
118
+ "Expected config for architecture '#{TARGET_TRIPLE}' and package type '#{type}', " \
119
+ "but none found. For a full list of supported systems visit: " \
118
120
  "https://docs.appsignal.com/support/operating-systems.html"
119
121
  )
120
122
  return
121
123
  end
122
124
 
123
- version = AGENT_CONFIG["version"]
125
+ version = APPSIGNAL_AGENT_CONFIG["version"]
124
126
  filename = ARCH_CONFIG[type]["filename"]
125
127
  download_errors = []
126
128
 
127
- AGENT_CONFIG["mirrors"].each do |mirror|
129
+ APPSIGNAL_AGENT_CONFIG["mirrors"].each do |mirror|
128
130
  download_url = [mirror, version, filename].join("/")
129
131
  report["download"]["download_url"] = download_url
130
132
 
131
133
  begin
134
+ proxy, _error = http_proxy
132
135
  args = [
133
136
  download_url,
134
137
  :ssl_ca_cert => CA_CERT_PATH,
135
- :proxy => http_proxy
138
+ :proxy => proxy
136
139
  ]
137
140
  if URI.respond_to?(:open) # rubocop:disable Style/GuardClause
138
141
  return URI.open(*args)
@@ -187,14 +190,25 @@ def store_download_version_on_report
187
190
  end
188
191
 
189
192
  def http_proxy
190
- proxy = try_http_proxy_value(Gem.configuration[:http_proxy])
191
- return proxy if proxy
193
+ proxy, error =
194
+ begin
195
+ [try_http_proxy_value(Gem.configuration[:http_proxy]), nil]
196
+ rescue => error
197
+ # Ignore this setting if the `.gemrc` file can't be read. This raises an
198
+ # error on Rubies with psych 4 in the standard library, but also have
199
+ # psych 5 installed: Ruby < 3.2.
200
+ # https://github.com/appsignal/appsignal-ruby/issues/904
201
+ [nil, error]
202
+ end
203
+ return [proxy, error] if proxy
192
204
 
193
205
  proxy = try_http_proxy_value(ENV["http_proxy"])
194
- return proxy if proxy
206
+ return [proxy, error] if proxy
195
207
 
196
208
  proxy = try_http_proxy_value(ENV["HTTP_PROXY"])
197
- return proxy if proxy
209
+ return [proxy, error] if proxy
210
+
211
+ [nil, error]
198
212
  end
199
213
 
200
214
  def try_http_proxy_value(value)
@@ -443,6 +443,9 @@ module Appsignal
443
443
  save :os, os
444
444
  puts_value "Operating System", os_label
445
445
 
446
+ distribution_file = "/etc/os-release"
447
+ save :os_distribution, File.exist?(distribution_file) ? File.read(distribution_file) : ""
448
+
446
449
  language_version = "#{rbconfig["RUBY_PROGRAM_VERSION"]}-p#{rbconfig["PATCHLEVEL"]}"
447
450
  save :language_version, language_version
448
451
  puts_format "Ruby version", language_version
@@ -50,7 +50,12 @@ module Appsignal
50
50
  end
51
51
 
52
52
  begin
53
- ffi_lib File.join(File.dirname(__FILE__), "../../../ext/libappsignal.#{lib_extension}")
53
+ begin
54
+ # RubyGems will install the extension in the gem's lib directory.
55
+ ffi_lib File.join(File.dirname(__FILE__), "../../../lib/libappsignal.#{lib_extension}")
56
+ rescue LoadError
57
+ ffi_lib File.join(File.dirname(__FILE__), "../../../ext/libappsignal.#{lib_extension}")
58
+ end
54
59
  typedef AppsignalString.by_value, :appsignal_string
55
60
 
56
61
  attach_function :appsignal_start, [], :void
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "yaml"
4
-
5
3
  begin
6
4
  if Appsignal::System.jruby?
7
5
  require "appsignal/extension/jruby"
@@ -24,9 +22,8 @@ module Appsignal
24
22
  class Extension
25
23
  class << self
26
24
  def agent_config
27
- @agent_config ||= YAML.load(
28
- File.read(File.join(File.dirname(__FILE__), "../../ext/agent.yml"))
29
- )
25
+ require_relative "../../ext/agent"
26
+ ::APPSIGNAL_AGENT_CONFIG
30
27
  end
31
28
 
32
29
  def agent_version
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.3.0".freeze
4
+ VERSION = "3.3.2".freeze
5
5
  end
data/lib/appsignal.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "json"
4
4
  require "securerandom"
5
+ require "stringio"
5
6
 
6
7
  require "appsignal/logger"
7
8
  require "appsignal/utils/deprecation_message"
@@ -636,9 +636,12 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
636
636
  run
637
637
  host_report = received_report["host"]
638
638
  host_report.delete("running_in_container") # Tested elsewhere
639
+ distribution_file = "/etc/os-release"
640
+ os_distribution = File.exist?(distribution_file) ? File.read(distribution_file) : ""
639
641
  expect(host_report).to eq(
640
642
  "architecture" => rbconfig["host_cpu"],
641
643
  "os" => rbconfig["host_os"],
644
+ "os_distribution" => os_distribution,
642
645
  "language_version" => language_version,
643
646
  "heroku" => false,
644
647
  "root" => false
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.2
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Beekman
8
8
  - Thijs Cadier
9
9
  - Tom de Bruijn
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-12-30 00:00:00.000000000 Z
13
+ date: 2023-01-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -168,7 +168,7 @@ files:
168
168
  - bin/appsignal
169
169
  - build_matrix.yml
170
170
  - ext/Rakefile
171
- - ext/agent.yml
171
+ - ext/agent.rb
172
172
  - ext/appsignal_extension.c
173
173
  - ext/base.rb
174
174
  - ext/extconf.rb
@@ -436,7 +436,7 @@ metadata:
436
436
  documentation_uri: https://docs.appsignal.com/ruby/
437
437
  homepage_uri: https://docs.appsignal.com/ruby/
438
438
  source_code_uri: https://github.com/appsignal/appsignal-ruby
439
- post_install_message:
439
+ post_install_message:
440
440
  rdoc_options: []
441
441
  require_paths:
442
442
  - lib
@@ -452,8 +452,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
452
452
  - !ruby/object:Gem::Version
453
453
  version: '0'
454
454
  requirements: []
455
- rubygems_version: 3.1.4
456
- signing_key:
455
+ rubygems_version: 3.4.2
456
+ signing_key:
457
457
  specification_version: 4
458
458
  summary: Logs performance and exception data from your app to appsignal.com
459
459
  test_files:
data/ext/agent.yml DELETED
@@ -1,101 +0,0 @@
1
- # DO NOT EDIT
2
- # This is a generated file by the `rake ship` family of tasks in the
3
- # appsignal-agent repository.
4
- # Modifications to this file will be overwritten with the next agent release.
5
- ---
6
- version: 9b62288
7
- mirrors:
8
- - https://appsignal-agent-releases.global.ssl.fastly.net
9
- - https://d135dj0rjqvssy.cloudfront.net
10
- triples:
11
- x86_64-darwin:
12
- static:
13
- checksum: 5ff2ec4f16f5089e15188670b2c43866c76ab5db2ac07d72878a9816e63171ca
14
- filename: appsignal-x86_64-darwin-all-static.tar.gz
15
- dynamic:
16
- checksum: c7b1ddd0efbd5fb5c48e7124ab13202c7b5fa2624354db66ebc2673d7196ce31
17
- filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
18
- universal-darwin:
19
- static:
20
- checksum: 5ff2ec4f16f5089e15188670b2c43866c76ab5db2ac07d72878a9816e63171ca
21
- filename: appsignal-x86_64-darwin-all-static.tar.gz
22
- dynamic:
23
- checksum: c7b1ddd0efbd5fb5c48e7124ab13202c7b5fa2624354db66ebc2673d7196ce31
24
- filename: appsignal-x86_64-darwin-all-dynamic.tar.gz
25
- aarch64-darwin:
26
- static:
27
- checksum: 9dfdfd6697b3eeeb80a30356fdc1d03a79b8601f18cedd1b2c1442e512d2ed6a
28
- filename: appsignal-aarch64-darwin-all-static.tar.gz
29
- dynamic:
30
- checksum: 1fe7a4e2b9e424ccce17c5c7422c84e29531507f672f6cebdd42a3f74feee0b9
31
- filename: appsignal-aarch64-darwin-all-dynamic.tar.gz
32
- arm64-darwin:
33
- static:
34
- checksum: 9dfdfd6697b3eeeb80a30356fdc1d03a79b8601f18cedd1b2c1442e512d2ed6a
35
- filename: appsignal-aarch64-darwin-all-static.tar.gz
36
- dynamic:
37
- checksum: 1fe7a4e2b9e424ccce17c5c7422c84e29531507f672f6cebdd42a3f74feee0b9
38
- filename: appsignal-aarch64-darwin-all-dynamic.tar.gz
39
- arm-darwin:
40
- static:
41
- checksum: 9dfdfd6697b3eeeb80a30356fdc1d03a79b8601f18cedd1b2c1442e512d2ed6a
42
- filename: appsignal-aarch64-darwin-all-static.tar.gz
43
- dynamic:
44
- checksum: 1fe7a4e2b9e424ccce17c5c7422c84e29531507f672f6cebdd42a3f74feee0b9
45
- filename: appsignal-aarch64-darwin-all-dynamic.tar.gz
46
- aarch64-linux:
47
- static:
48
- checksum: 0e5d89aeda1e883c912ff069bb76029a1e3cad69f493865d877ffaffa2b45142
49
- filename: appsignal-aarch64-linux-all-static.tar.gz
50
- dynamic:
51
- checksum: 58b09bf6ca7761a4d68cd9de87a0bb45b3465ace90b62a88d9fe77f629c26d7d
52
- filename: appsignal-aarch64-linux-all-dynamic.tar.gz
53
- i686-linux:
54
- static:
55
- checksum: ff3cffb1204afd846ba0bb33c50b03f8ada8305527a5908ccfebed6fdcce0e61
56
- filename: appsignal-i686-linux-all-static.tar.gz
57
- dynamic:
58
- checksum: '0895a85c3df276864807f7b2572c96ea8c8cd3cc770b7cf02656c6bd01981b59'
59
- filename: appsignal-i686-linux-all-dynamic.tar.gz
60
- x86-linux:
61
- static:
62
- checksum: ff3cffb1204afd846ba0bb33c50b03f8ada8305527a5908ccfebed6fdcce0e61
63
- filename: appsignal-i686-linux-all-static.tar.gz
64
- dynamic:
65
- checksum: '0895a85c3df276864807f7b2572c96ea8c8cd3cc770b7cf02656c6bd01981b59'
66
- filename: appsignal-i686-linux-all-dynamic.tar.gz
67
- x86_64-linux:
68
- static:
69
- checksum: 0b6fe4b343461a1a906fc73edb44bc5b12c75214d21fc81ed26d3eb88588003e
70
- filename: appsignal-x86_64-linux-all-static.tar.gz
71
- dynamic:
72
- checksum: 82117daf3e1c550526f74f4ec66c403bed22aa8600459b749858814589ed688b
73
- filename: appsignal-x86_64-linux-all-dynamic.tar.gz
74
- x86_64-linux-musl:
75
- static:
76
- checksum: b3f52d7a7a1f4ae8095dd5b1207270dc1797766820d925aca0d09133983c9163
77
- filename: appsignal-x86_64-linux-musl-all-static.tar.gz
78
- dynamic:
79
- checksum: 5de9ddc90fc5beb308eadd5381ac0360692cb32e58dcaf0b0d7ecd3dabf44499
80
- filename: appsignal-x86_64-linux-musl-all-dynamic.tar.gz
81
- aarch64-linux-musl:
82
- static:
83
- checksum: d306c50cc9f1bc8ea3339b4185b2a60a1c27f17d9067a529b1889d74c6c0a8d6
84
- filename: appsignal-aarch64-linux-musl-all-static.tar.gz
85
- dynamic:
86
- checksum: e3015e05a807ef5027ea8929a917873bcdaf714138ab5d6d028e3c855b3a61d3
87
- filename: appsignal-aarch64-linux-musl-all-dynamic.tar.gz
88
- x86_64-freebsd:
89
- static:
90
- checksum: 135d2ff898f30b15721eca36569d1a0a5deaaee7b4787937d0888ed49f25019b
91
- filename: appsignal-x86_64-freebsd-all-static.tar.gz
92
- dynamic:
93
- checksum: 873aea3c808b7de431881f2f4b4dae686b20b309e76e3eefbb71e399ebea5284
94
- filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz
95
- amd64-freebsd:
96
- static:
97
- checksum: 135d2ff898f30b15721eca36569d1a0a5deaaee7b4787937d0888ed49f25019b
98
- filename: appsignal-x86_64-freebsd-all-static.tar.gz
99
- dynamic:
100
- checksum: 873aea3c808b7de431881f2f4b4dae686b20b309e76e3eefbb71e399ebea5284
101
- filename: appsignal-x86_64-freebsd-all-dynamic.tar.gz