appsignal 3.4.9-java → 3.4.11-java

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: ec05b07de3c89bde6669f2af1a8d25b25de7a2149bfcde89aab3b369c2e4fb00
4
- data.tar.gz: 1dd9ac89d972087f32e3ffad6c0b6f2d60a15a749d2b90dd0ebd50b3fdb1ac13
3
+ metadata.gz: 2734459fc06f6ae3af052dc8cb418e10d81ad0ce5b6c73d74ff2e354984a069f
4
+ data.tar.gz: 1870d2a660dd057868f81d931a27bd047c781bb386ddc938cb3f5e48a41d989c
5
5
  SHA512:
6
- metadata.gz: 21680ba7d680c7d0303a51940dbaddf4bcf8ea34428236678169dffb61e415bad1acdaf3349a33883b42defe67efaa099cd85c08134d12a2855874cdf8ad94cc
7
- data.tar.gz: c198818a139d0d0f9a05e7408fe14c7c387c7658025dc22f6dd565d1d16d5b58cc09390f8b5fb80b481060149691b2fa6fe04da8bcf329e1381c0ec9097cbfee
6
+ metadata.gz: e931cd117c741e0477517317381adfd6957e762e4e29e596727d1017417a5c34df803eb83a707f6121b60154c4ad5ddff698079c46640035b8077da19c85c062
7
+ data.tar.gz: 13e146b750712f1e3e1cb08bf6765ecf88762f278a3e0d21067aaae390d2deadaf0dbc76a08c0812a1996d83fa18d99977e1fc96f50d0335aa6890a1a3bcf52b
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 3.0
4
+ TargetRubyVersion: 2.7
5
5
  NewCops: enable
6
6
  Include:
7
7
  - "**/*.rb"
@@ -138,7 +138,7 @@ blocks:
138
138
  .bundle
139
139
  - cache store $_GEMS_CACHE-gems-$RUBY_VERSION-diagnose-$(checksum Gemfile)
140
140
  $HOME/.gem
141
- - name: Ruby 3.0.5
141
+ - name: Ruby 2.7.8
142
142
  dependencies:
143
143
  - Validation
144
144
  task:
@@ -165,7 +165,7 @@ blocks:
165
165
  file found'"
166
166
  - "[ -f ext/mkmf.log ] && cat ext/mkmf.log || echo 'No ext/mkmf.log file found'"
167
167
  jobs:
168
- - name: Ruby 3.0.5 for no_dependencies
168
+ - name: Ruby 2.7.8 for no_dependencies
169
169
  env_vars:
170
170
  - &2
171
171
  name: BUNDLE_PATH
@@ -179,6 +179,345 @@ blocks:
179
179
  - &5
180
180
  name: COV
181
181
  value: '1'
182
+ - name: RUBY_VERSION
183
+ value: 2.7.8
184
+ - name: GEMSET
185
+ value: no_dependencies
186
+ - name: BUNDLE_GEMFILE
187
+ value: gemfiles/no_dependencies.gemfile
188
+ - name: _RUBYGEMS_VERSION
189
+ value: latest
190
+ - name: _BUNDLER_VERSION
191
+ value: latest
192
+ commands:
193
+ - "./support/bundler_wrapper exec rake test"
194
+ - "./support/bundler_wrapper exec rake test:failure"
195
+ - name: Ruby 2.7.8 - Gems
196
+ dependencies:
197
+ - Ruby 2.7.8
198
+ task:
199
+ prologue:
200
+ commands:
201
+ - cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)-$(checksum
202
+ appsignal.gemspec)
203
+ - cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE)-$(checksum
204
+ appsignal.gemspec)
205
+ - "./support/install_deps"
206
+ - bundle config set clean 'true'
207
+ - "./support/bundler_wrapper install --jobs=3 --retry=3"
208
+ - "./support/bundler_wrapper exec rake extension:install"
209
+ epilogue: *1
210
+ jobs:
211
+ - name: Ruby 2.7.8 for capistrano2
212
+ env_vars:
213
+ - *2
214
+ - *3
215
+ - *4
216
+ - *5
217
+ - name: RUBY_VERSION
218
+ value: 2.7.8
219
+ - name: GEMSET
220
+ value: capistrano2
221
+ - name: BUNDLE_GEMFILE
222
+ value: gemfiles/capistrano2.gemfile
223
+ - name: _RUBYGEMS_VERSION
224
+ value: latest
225
+ - name: _BUNDLER_VERSION
226
+ value: latest
227
+ commands:
228
+ - "./support/bundler_wrapper exec rake test"
229
+ - name: Ruby 2.7.8 for capistrano3
230
+ env_vars:
231
+ - *2
232
+ - *3
233
+ - *4
234
+ - *5
235
+ - name: RUBY_VERSION
236
+ value: 2.7.8
237
+ - name: GEMSET
238
+ value: capistrano3
239
+ - name: BUNDLE_GEMFILE
240
+ value: gemfiles/capistrano3.gemfile
241
+ - name: _RUBYGEMS_VERSION
242
+ value: latest
243
+ - name: _BUNDLER_VERSION
244
+ value: latest
245
+ commands:
246
+ - "./support/bundler_wrapper exec rake test"
247
+ - name: Ruby 2.7.8 for grape
248
+ env_vars:
249
+ - *2
250
+ - *3
251
+ - *4
252
+ - *5
253
+ - name: RUBY_VERSION
254
+ value: 2.7.8
255
+ - name: GEMSET
256
+ value: grape
257
+ - name: BUNDLE_GEMFILE
258
+ value: gemfiles/grape.gemfile
259
+ - name: _RUBYGEMS_VERSION
260
+ value: latest
261
+ - name: _BUNDLER_VERSION
262
+ value: latest
263
+ commands:
264
+ - "./support/bundler_wrapper exec rake test"
265
+ - name: Ruby 2.7.8 for http5
266
+ env_vars:
267
+ - *2
268
+ - *3
269
+ - *4
270
+ - *5
271
+ - name: RUBY_VERSION
272
+ value: 2.7.8
273
+ - name: GEMSET
274
+ value: http5
275
+ - name: BUNDLE_GEMFILE
276
+ value: gemfiles/http5.gemfile
277
+ - name: _RUBYGEMS_VERSION
278
+ value: latest
279
+ - name: _BUNDLER_VERSION
280
+ value: latest
281
+ commands:
282
+ - "./support/bundler_wrapper exec rake test"
283
+ - name: Ruby 2.7.8 for padrino
284
+ env_vars:
285
+ - *2
286
+ - *3
287
+ - *4
288
+ - *5
289
+ - name: RUBY_VERSION
290
+ value: 2.7.8
291
+ - name: GEMSET
292
+ value: padrino
293
+ - name: BUNDLE_GEMFILE
294
+ value: gemfiles/padrino.gemfile
295
+ - name: _RUBYGEMS_VERSION
296
+ value: latest
297
+ - name: _BUNDLER_VERSION
298
+ value: latest
299
+ commands:
300
+ - "./support/bundler_wrapper exec rake test"
301
+ - name: Ruby 2.7.8 for psych-3
302
+ env_vars:
303
+ - *2
304
+ - *3
305
+ - *4
306
+ - *5
307
+ - name: RUBY_VERSION
308
+ value: 2.7.8
309
+ - name: GEMSET
310
+ value: psych-3
311
+ - name: BUNDLE_GEMFILE
312
+ value: gemfiles/psych-3.gemfile
313
+ - name: _RUBYGEMS_VERSION
314
+ value: latest
315
+ - name: _BUNDLER_VERSION
316
+ value: latest
317
+ commands:
318
+ - "./support/bundler_wrapper exec rake test"
319
+ - name: Ruby 2.7.8 for psych-4
320
+ env_vars:
321
+ - *2
322
+ - *3
323
+ - *4
324
+ - *5
325
+ - name: RUBY_VERSION
326
+ value: 2.7.8
327
+ - name: GEMSET
328
+ value: psych-4
329
+ - name: BUNDLE_GEMFILE
330
+ value: gemfiles/psych-4.gemfile
331
+ - name: _RUBYGEMS_VERSION
332
+ value: latest
333
+ - name: _BUNDLER_VERSION
334
+ value: latest
335
+ commands:
336
+ - "./support/bundler_wrapper exec rake test"
337
+ - name: Ruby 2.7.8 for que
338
+ env_vars:
339
+ - *2
340
+ - *3
341
+ - *4
342
+ - *5
343
+ - name: RUBY_VERSION
344
+ value: 2.7.8
345
+ - name: GEMSET
346
+ value: que
347
+ - name: BUNDLE_GEMFILE
348
+ value: gemfiles/que.gemfile
349
+ - name: _RUBYGEMS_VERSION
350
+ value: latest
351
+ - name: _BUNDLER_VERSION
352
+ value: latest
353
+ commands:
354
+ - "./support/bundler_wrapper exec rake test"
355
+ - name: Ruby 2.7.8 for que_beta
356
+ env_vars:
357
+ - *2
358
+ - *3
359
+ - *4
360
+ - *5
361
+ - name: RUBY_VERSION
362
+ value: 2.7.8
363
+ - name: GEMSET
364
+ value: que_beta
365
+ - name: BUNDLE_GEMFILE
366
+ value: gemfiles/que_beta.gemfile
367
+ - name: _RUBYGEMS_VERSION
368
+ value: latest
369
+ - name: _BUNDLER_VERSION
370
+ value: latest
371
+ commands:
372
+ - "./support/bundler_wrapper exec rake test"
373
+ - name: Ruby 2.7.8 for rails-6.0
374
+ env_vars:
375
+ - *2
376
+ - *3
377
+ - *4
378
+ - *5
379
+ - name: RUBY_VERSION
380
+ value: 2.7.8
381
+ - name: GEMSET
382
+ value: rails-6.0
383
+ - name: BUNDLE_GEMFILE
384
+ value: gemfiles/rails-6.0.gemfile
385
+ - name: _RUBYGEMS_VERSION
386
+ value: latest
387
+ - name: _BUNDLER_VERSION
388
+ value: latest
389
+ commands:
390
+ - "./support/bundler_wrapper exec rake test"
391
+ - name: Ruby 2.7.8 for rails-6.1
392
+ env_vars:
393
+ - *2
394
+ - *3
395
+ - *4
396
+ - *5
397
+ - name: RUBY_VERSION
398
+ value: 2.7.8
399
+ - name: GEMSET
400
+ value: rails-6.1
401
+ - name: BUNDLE_GEMFILE
402
+ value: gemfiles/rails-6.1.gemfile
403
+ - name: _RUBYGEMS_VERSION
404
+ value: latest
405
+ - name: _BUNDLER_VERSION
406
+ value: latest
407
+ commands:
408
+ - "./support/bundler_wrapper exec rake test"
409
+ - name: Ruby 2.7.8 for rails-7.0
410
+ env_vars:
411
+ - *2
412
+ - *3
413
+ - *4
414
+ - *5
415
+ - name: RUBY_VERSION
416
+ value: 2.7.8
417
+ - name: GEMSET
418
+ value: rails-7.0
419
+ - name: BUNDLE_GEMFILE
420
+ value: gemfiles/rails-7.0.gemfile
421
+ - name: _RUBYGEMS_VERSION
422
+ value: latest
423
+ - name: _BUNDLER_VERSION
424
+ value: latest
425
+ commands:
426
+ - "./support/bundler_wrapper exec rake test"
427
+ - name: Ruby 2.7.8 for sequel
428
+ env_vars:
429
+ - *2
430
+ - *3
431
+ - *4
432
+ - *5
433
+ - name: RUBY_VERSION
434
+ value: 2.7.8
435
+ - name: GEMSET
436
+ value: sequel
437
+ - name: BUNDLE_GEMFILE
438
+ value: gemfiles/sequel.gemfile
439
+ - name: _RUBYGEMS_VERSION
440
+ value: latest
441
+ - name: _BUNDLER_VERSION
442
+ value: latest
443
+ commands:
444
+ - "./support/bundler_wrapper exec rake test"
445
+ - name: Ruby 2.7.8 for sinatra
446
+ env_vars:
447
+ - *2
448
+ - *3
449
+ - *4
450
+ - *5
451
+ - name: RUBY_VERSION
452
+ value: 2.7.8
453
+ - name: GEMSET
454
+ value: sinatra
455
+ - name: BUNDLE_GEMFILE
456
+ value: gemfiles/sinatra.gemfile
457
+ - name: _RUBYGEMS_VERSION
458
+ value: latest
459
+ - name: _BUNDLER_VERSION
460
+ value: latest
461
+ commands:
462
+ - "./support/bundler_wrapper exec rake test"
463
+ - name: Ruby 2.7.8 for webmachine1
464
+ env_vars:
465
+ - *2
466
+ - *3
467
+ - *4
468
+ - *5
469
+ - name: RUBY_VERSION
470
+ value: 2.7.8
471
+ - name: GEMSET
472
+ value: webmachine1
473
+ - name: BUNDLE_GEMFILE
474
+ value: gemfiles/webmachine1.gemfile
475
+ - name: _RUBYGEMS_VERSION
476
+ value: latest
477
+ - name: _BUNDLER_VERSION
478
+ value: latest
479
+ commands:
480
+ - "./support/bundler_wrapper exec rake test"
481
+ - name: Ruby 2.7.8 for webmachine2
482
+ env_vars:
483
+ - *2
484
+ - *3
485
+ - *4
486
+ - *5
487
+ - name: RUBY_VERSION
488
+ value: 2.7.8
489
+ - name: GEMSET
490
+ value: webmachine2
491
+ - name: BUNDLE_GEMFILE
492
+ value: gemfiles/webmachine2.gemfile
493
+ - name: _RUBYGEMS_VERSION
494
+ value: latest
495
+ - name: _BUNDLER_VERSION
496
+ value: latest
497
+ commands:
498
+ - "./support/bundler_wrapper exec rake test"
499
+ - name: Ruby 3.0.5
500
+ dependencies:
501
+ - Validation
502
+ task:
503
+ prologue:
504
+ commands:
505
+ - cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)-$(checksum
506
+ appsignal.gemspec)
507
+ - cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE)-$(checksum
508
+ appsignal.gemspec)
509
+ - "./support/install_deps"
510
+ - bundle config set clean 'true'
511
+ - "./support/bundler_wrapper install --jobs=3 --retry=3"
512
+ - "./support/bundler_wrapper exec rake extension:install"
513
+ epilogue: *1
514
+ jobs:
515
+ - name: Ruby 3.0.5 for no_dependencies
516
+ env_vars:
517
+ - *2
518
+ - *3
519
+ - *4
520
+ - *5
182
521
  - name: RUBY_VERSION
183
522
  value: 3.0.5
184
523
  - name: GEMSET
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.4.11
4
+
5
+ ### Added
6
+
7
+ - [4722292d](https://github.com/appsignal/appsignal-ruby/commit/4722292d022fb7ff7f3403b964b24e82112e93bd) patch - Re-add support for Ruby 2.7.
8
+ - [d782f9a6](https://github.com/appsignal/appsignal-ruby/commit/d782f9a6db0bd679f01c543900b39fc15124a25f) patch - Add the `host_role` config option. This config option can be set per host to generate some metrics automatically per host and possibly do things like grouping in the future.
9
+
10
+ ### Changed
11
+
12
+ - [f61f4f68](https://github.com/appsignal/appsignal-ruby/commit/f61f4f68699f022d3d9dbb0fa5dc98881923a001) patch - Bump agent to version d789895.
13
+
14
+ - Increase short data truncation from 2000 to 10000 characters.
15
+
16
+ ## 3.4.10
17
+
18
+ ### Changed
19
+
20
+ - [61e093b8](https://github.com/appsignal/appsignal-ruby/commit/61e093b8b89efd9914fe5252b6200a288348d394) patch - Bump agent to 6bec691.
21
+
22
+ - Upgrade `sql_lexer` to v0.9.5. It adds sanitization support for the `THEN` and `ELSE` logical operators.
23
+
3
24
  ## 3.4.9
4
25
 
5
26
  ### Added
data/appsignal.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
20
20
  gem.name = "appsignal"
21
21
  gem.require_paths = %w[lib ext]
22
22
  gem.version = Appsignal::VERSION
23
- gem.required_ruby_version = ">= 3.0"
23
+ gem.required_ruby_version = ">= 2.7"
24
24
  # Default extension installer. Overridden by JRuby gemspec as defined in
25
25
  # `Rakefile`.
26
26
  gem.extensions = %w[ext/extconf.rb]
data/build_matrix.yml CHANGED
@@ -172,6 +172,7 @@ matrix:
172
172
  - "rails-7.0"
173
173
 
174
174
  ruby:
175
+ - ruby: "2.7.8"
175
176
  - ruby: "3.0.5"
176
177
  - ruby: "3.1.3"
177
178
  - ruby: "3.2.1"
@@ -193,12 +194,14 @@ matrix:
193
194
  - gem: "psych-3"
194
195
  only:
195
196
  ruby:
197
+ - "2.7.8"
196
198
  - "3.0.5"
197
199
  - "3.1.3"
198
200
  - "3.2.1"
199
201
  - gem: "psych-4"
200
202
  only:
201
203
  ruby:
204
+ - "2.7.8"
202
205
  - "3.0.5"
203
206
  - "3.1.3"
204
207
  - "3.2.1"
@@ -207,11 +210,13 @@ matrix:
207
210
  - gem: "rails-6.0"
208
211
  only:
209
212
  ruby:
213
+ - "2.7.8"
210
214
  - "3.0.5"
211
215
  - "jruby-9.4.1.0"
212
216
  - gem: "rails-6.1"
213
217
  only:
214
218
  ruby:
219
+ - "2.7.8"
215
220
  - "3.0.5"
216
221
  - "3.1.3"
217
222
  - "3.2.1"
@@ -219,6 +224,7 @@ matrix:
219
224
  - gem: "rails-7.0"
220
225
  only:
221
226
  ruby:
227
+ - "2.7.8"
222
228
  - "3.0.5"
223
229
  - "3.1.3"
224
230
  - "3.2.1"
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" => "ceaca3b",
9
+ "version" => "d789895",
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" => "00f1b2c0b79827ce1abb751005221c4852787ca1804ebcd7e2634714d146ffe0",
17
+ "checksum" => "8ea76b7d011c728b7988d017a39fc3a432d9c86392e6e46767ecc931e583777a",
18
18
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
19
19
  },
20
20
  "dynamic" => {
21
- "checksum" => "9aed6c7268caf2b2fb33e8dc241f499089a68aaaab18c270a606a22c8afcad55",
21
+ "checksum" => "beacdcd579bcc06a69da279dbca2f363395ea4b1846fa4b6e49de612beb07a8a",
22
22
  "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
23
23
  }
24
24
  },
25
25
  "universal-darwin" => {
26
26
  "static" => {
27
- "checksum" => "00f1b2c0b79827ce1abb751005221c4852787ca1804ebcd7e2634714d146ffe0",
27
+ "checksum" => "8ea76b7d011c728b7988d017a39fc3a432d9c86392e6e46767ecc931e583777a",
28
28
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
29
29
  },
30
30
  "dynamic" => {
31
- "checksum" => "9aed6c7268caf2b2fb33e8dc241f499089a68aaaab18c270a606a22c8afcad55",
31
+ "checksum" => "beacdcd579bcc06a69da279dbca2f363395ea4b1846fa4b6e49de612beb07a8a",
32
32
  "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
33
33
  }
34
34
  },
35
35
  "aarch64-darwin" => {
36
36
  "static" => {
37
- "checksum" => "e9195d0aa4e22214eeb2dcb54651014db09f2b84f5f5ef41f6c7fcddb9b58384",
37
+ "checksum" => "535fed60ac1484e40bbfe77cd4fe9131c67f25e6362a2fe31d987c36ec82ba08",
38
38
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
39
39
  },
40
40
  "dynamic" => {
41
- "checksum" => "031c9ed8449f4ebb24ebb50861b76162f10c9f371f163d86a48a6bc695a1a4ba",
41
+ "checksum" => "6c984f53a07788ebb469ede014ac8732d9db1ef43736825690492e7c12e3fb83",
42
42
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
43
43
  }
44
44
  },
45
45
  "arm64-darwin" => {
46
46
  "static" => {
47
- "checksum" => "e9195d0aa4e22214eeb2dcb54651014db09f2b84f5f5ef41f6c7fcddb9b58384",
47
+ "checksum" => "535fed60ac1484e40bbfe77cd4fe9131c67f25e6362a2fe31d987c36ec82ba08",
48
48
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
49
49
  },
50
50
  "dynamic" => {
51
- "checksum" => "031c9ed8449f4ebb24ebb50861b76162f10c9f371f163d86a48a6bc695a1a4ba",
51
+ "checksum" => "6c984f53a07788ebb469ede014ac8732d9db1ef43736825690492e7c12e3fb83",
52
52
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
53
53
  }
54
54
  },
55
55
  "arm-darwin" => {
56
56
  "static" => {
57
- "checksum" => "e9195d0aa4e22214eeb2dcb54651014db09f2b84f5f5ef41f6c7fcddb9b58384",
57
+ "checksum" => "535fed60ac1484e40bbfe77cd4fe9131c67f25e6362a2fe31d987c36ec82ba08",
58
58
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
59
59
  },
60
60
  "dynamic" => {
61
- "checksum" => "031c9ed8449f4ebb24ebb50861b76162f10c9f371f163d86a48a6bc695a1a4ba",
61
+ "checksum" => "6c984f53a07788ebb469ede014ac8732d9db1ef43736825690492e7c12e3fb83",
62
62
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
63
63
  }
64
64
  },
65
65
  "aarch64-linux" => {
66
66
  "static" => {
67
- "checksum" => "d568c447595d5a46b726c09c44c66a28153bb85b843d9f915e755de60d2cc797",
67
+ "checksum" => "35f96e0adf408fd8ac3e89c6cb3c5506eb4250643199aad3ba298ab131d773c8",
68
68
  "filename" => "appsignal-aarch64-linux-all-static.tar.gz"
69
69
  },
70
70
  "dynamic" => {
71
- "checksum" => "3884412af9f537b641113cb84e1b534e07289baadf5691cd3f4877fc4cd05896",
71
+ "checksum" => "6f4e5431c50c947f9fdeb92b7536780277bebb75327cfa5ee9c27659a9d20b5e",
72
72
  "filename" => "appsignal-aarch64-linux-all-dynamic.tar.gz"
73
73
  }
74
74
  },
75
75
  "i686-linux" => {
76
76
  "static" => {
77
- "checksum" => "4a8135e861ef8dd347ada22fa1fc993d1c5ba5db7f9f043a38fb9891c57368a5",
77
+ "checksum" => "f4a1c9a67a0a4cde7e13ef555a6782e5d4f15bfbce9277c2aaf8e248a0fb858e",
78
78
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
79
79
  },
80
80
  "dynamic" => {
81
- "checksum" => "baf3941d9913f8b348bb4fce01c7638f6e0a112a8cc788889b081f141949a643",
81
+ "checksum" => "26a3fa059874d76897e6a4c709048789f531d7e84e6b8ae4e7fbcdfb26cdef40",
82
82
  "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
83
83
  }
84
84
  },
85
85
  "x86-linux" => {
86
86
  "static" => {
87
- "checksum" => "4a8135e861ef8dd347ada22fa1fc993d1c5ba5db7f9f043a38fb9891c57368a5",
87
+ "checksum" => "f4a1c9a67a0a4cde7e13ef555a6782e5d4f15bfbce9277c2aaf8e248a0fb858e",
88
88
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
89
89
  },
90
90
  "dynamic" => {
91
- "checksum" => "baf3941d9913f8b348bb4fce01c7638f6e0a112a8cc788889b081f141949a643",
91
+ "checksum" => "26a3fa059874d76897e6a4c709048789f531d7e84e6b8ae4e7fbcdfb26cdef40",
92
92
  "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
93
93
  }
94
94
  },
95
95
  "x86_64-linux" => {
96
96
  "static" => {
97
- "checksum" => "4a22f454e5c125cd24436ad331d53df965394be81272c8ab366a2e6ea5f02625",
97
+ "checksum" => "016c962727e31a07eee7a221944ff9c4bbb054eada7e87bbe4602233364f380c",
98
98
  "filename" => "appsignal-x86_64-linux-all-static.tar.gz"
99
99
  },
100
100
  "dynamic" => {
101
- "checksum" => "a49e8d8700b64f6aeb06c074cb628ed99d3d57662a52029f5409f8b51e185c4f",
101
+ "checksum" => "d286a8bcc4a876057a14a90cc6ceecdc75230e1c4d721ea3f3138c58c748e602",
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" => "d770f78f9f87d3b5b01a93f0e3f0dffc36a4f8bd664ce37574fd0671276d4d8b",
107
+ "checksum" => "2ce9e34b283c76c6b25028d3a770a942f4975cd071c586438a8765948237ca42",
108
108
  "filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
109
109
  },
110
110
  "dynamic" => {
111
- "checksum" => "1f018b072fca2234b7f8c9bdc0ae26a93826ddf3d715a1107c24b9e98a0e01d9",
111
+ "checksum" => "0eebe8cd448bce5386cdce1039e7f74c60208408108af9537a80e8e8737f7aec",
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" => "ef4838e0cd3e43d0cc138e0eb6b78b7cf1f29244daa8379bb30c47b1497f5570",
117
+ "checksum" => "017da79e62a2875c0384898c9160cd83acd712faba05154fd8a0627fec1b5ba4",
118
118
  "filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
119
119
  },
120
120
  "dynamic" => {
121
- "checksum" => "1bac2cce3dcde3e17174f56c7db149b69a347c0d40723c6555a292425fab41e0",
121
+ "checksum" => "507d4fa0f3d6168f905404b4b36fe494c5479606d77f50d2d2d3d27b6c645ea1",
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" => "f1730afd98b48f3fa938fd07b27dc470e7dcd3f8d2e72a7a0fc2a4b080461f5b",
127
+ "checksum" => "13d27afcb68aff5e164e05fc4fd8874e73f14c0154301f2e6e6e75f67fa9182c",
128
128
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
129
129
  },
130
130
  "dynamic" => {
131
- "checksum" => "e7760c461ed4930983fe6b07a954c7ffa42c63ef627890c246eb2c4fb63bca84",
131
+ "checksum" => "dafa25a73cd79e269466d5129dd7b61ac88e09d87c3f253fc9705e1d9469fa2b",
132
132
  "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
133
133
  }
134
134
  },
135
135
  "amd64-freebsd" => {
136
136
  "static" => {
137
- "checksum" => "f1730afd98b48f3fa938fd07b27dc470e7dcd3f8d2e72a7a0fc2a4b080461f5b",
137
+ "checksum" => "13d27afcb68aff5e164e05fc4fd8874e73f14c0154301f2e6e6e75f67fa9182c",
138
138
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
139
139
  },
140
140
  "dynamic" => {
141
- "checksum" => "e7760c461ed4930983fe6b07a954c7ffa42c63ef627890c246eb2c4fb63bca84",
141
+ "checksum" => "dafa25a73cd79e269466d5129dd7b61ac88e09d87c3f253fc9705e1d9469fa2b",
142
142
  "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
143
143
  }
144
144
  }
data/ext/base.rb CHANGED
@@ -14,7 +14,7 @@ EXT_PATH = File.expand_path(__dir__).freeze
14
14
 
15
15
  AGENT_PLATFORM = Appsignal::System.agent_platform
16
16
  AGENT_ARCHITECTURE = Appsignal::System.agent_architecture
17
- TARGET_TRIPLE = "#{AGENT_ARCHITECTURE}-#{AGENT_PLATFORM}".freeze
17
+ TARGET_TRIPLE = "#{AGENT_ARCHITECTURE}-#{AGENT_PLATFORM}"
18
18
  ARCH_CONFIG = APPSIGNAL_AGENT_CONFIG["triples"][TARGET_TRIPLE].freeze
19
19
  CA_CERT_PATH = File.join(EXT_PATH, "../resources/cacert.pem").freeze
20
20
 
@@ -83,6 +83,7 @@ module Appsignal
83
83
  "APPSIGNAL_FILTER_PARAMETERS" => :filter_parameters,
84
84
  "APPSIGNAL_FILTER_SESSION_DATA" => :filter_session_data,
85
85
  "APPSIGNAL_HOSTNAME" => :hostname,
86
+ "APPSIGNAL_HOST_ROLE" => :host_role,
86
87
  "APPSIGNAL_HTTP_PROXY" => :http_proxy,
87
88
  "APPSIGNAL_IGNORE_ACTIONS" => :ignore_actions,
88
89
  "APPSIGNAL_IGNORE_ERRORS" => :ignore_errors,
@@ -115,6 +116,7 @@ module Appsignal
115
116
  APPSIGNAL_BIND_ADDRESS
116
117
  APPSIGNAL_CA_FILE_PATH
117
118
  APPSIGNAL_HOSTNAME
119
+ APPSIGNAL_HOST_ROLE
118
120
  APPSIGNAL_HTTP_PROXY
119
121
  APPSIGNAL_LOG
120
122
  APPSIGNAL_LOG_LEVEL
@@ -337,6 +339,7 @@ module Appsignal
337
339
  ENV["_APPSIGNAL_FILTER_PARAMETERS"] = config_hash[:filter_parameters].join(",")
338
340
  ENV["_APPSIGNAL_FILTER_SESSION_DATA"] = config_hash[:filter_session_data].join(",")
339
341
  ENV["_APPSIGNAL_HOSTNAME"] = config_hash[:hostname].to_s
342
+ ENV["_APPSIGNAL_HOST_ROLE"] = config_hash[:host_role].to_s
340
343
  ENV["_APPSIGNAL_HTTP_PROXY"] = config_hash[:http_proxy]
341
344
  ENV["_APPSIGNAL_IGNORE_ACTIONS"] = config_hash[:ignore_actions].join(",")
342
345
  ENV["_APPSIGNAL_IGNORE_ERRORS"] = config_hash[:ignore_errors].join(",")
@@ -10,7 +10,7 @@ module Appsignal
10
10
  attr_reader :root_path
11
11
 
12
12
  def initialize
13
- @root_path = "#{Rails.root}/".freeze
13
+ @root_path = "#{Rails.root}/"
14
14
  end
15
15
 
16
16
  def format(payload)
@@ -84,6 +84,6 @@ module Appsignal
84
84
  end
85
85
  end
86
86
 
87
- Dir.glob(File.expand_path("event_formatter/**/*.rb", __dir__)).each do |file|
87
+ Dir.glob(File.expand_path("event_formatter/**/*.rb", __dir__)).sort.each do |file|
88
88
  require file
89
89
  end
@@ -539,7 +539,7 @@ module Appsignal
539
539
 
540
540
  metadata
541
541
  .transform_keys(&:to_s)
542
- .except(*Appsignal.config[:filter_metadata])
542
+ .reject { |key, _value| Appsignal.config[:filter_metadata].include?(key) }
543
543
  end
544
544
 
545
545
  # Returns the environment for a transaction.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.4.9"
4
+ VERSION = "3.4.11"
5
5
  end
@@ -641,6 +641,7 @@ describe Appsignal::Config do
641
641
  expect(ENV.fetch("_APPSIGNAL_RUNNING_IN_CONTAINER", nil)).to eq "false"
642
642
  expect(ENV.fetch("_APPSIGNAL_ENABLE_HOST_METRICS", nil)).to eq "true"
643
643
  expect(ENV.fetch("_APPSIGNAL_HOSTNAME", nil)).to eq ""
644
+ expect(ENV.fetch("_APPSIGNAL_HOST_ROLE", nil)).to eq ""
644
645
  expect(ENV.fetch("_APPSIGNAL_PROCESS_NAME", nil)).to include "rspec"
645
646
  expect(ENV.fetch("_APPSIGNAL_CA_FILE_PATH", nil))
646
647
  .to eq File.join(resources_dir, "cacert.pem")
@@ -667,6 +668,17 @@ describe Appsignal::Config do
667
668
  end
668
669
  end
669
670
 
671
+ context "with :host_role" do
672
+ before do
673
+ config[:host_role] = "host role"
674
+ config.write_to_environment
675
+ end
676
+
677
+ it "sets the modified :host_role" do
678
+ expect(ENV.fetch("_APPSIGNAL_HOST_ROLE", nil)).to eq "host role"
679
+ end
680
+ end
681
+
670
682
  context "with :working_dir_path" do
671
683
  before do
672
684
  config[:working_dir_path] = "/tmp/appsignal2"
@@ -355,7 +355,7 @@ describe Appsignal::Transaction do
355
355
  end
356
356
 
357
357
  describe "#set_tags" do
358
- let(:long_string) { "a" * 2001 }
358
+ let(:long_string) { "a" * 10_001 }
359
359
  before do
360
360
  transaction.set_tags(
361
361
  :valid_key => "valid_value",
@@ -377,7 +377,7 @@ describe Appsignal::Transaction do
377
377
  "valid_string_key" => "valid_value",
378
378
  "both_symbols" => "valid_value",
379
379
  "integer_value" => 1,
380
- "too_long_value" => "#{"a" * 2000}...",
380
+ "too_long_value" => "#{"a" * 10_000}...",
381
381
  long_string => "too_long_key"
382
382
  )
383
383
  end
data/spec/spec_helper.rb CHANGED
@@ -12,25 +12,25 @@ require "rspec"
12
12
  require "timecop"
13
13
  require "webmock/rspec"
14
14
 
15
- Dir[File.join(APPSIGNAL_SPEC_DIR, "support", "helpers", "*.rb")].each do |f|
15
+ Dir[File.join(APPSIGNAL_SPEC_DIR, "support", "helpers", "*.rb")].sort.each do |f|
16
16
  require f
17
17
  end
18
- Dir[File.join(DirectoryHelper.support_dir, "mocks", "*.rb")].each do |f|
18
+ Dir[File.join(DirectoryHelper.support_dir, "mocks", "*.rb")].sort.each do |f|
19
19
  require f
20
20
  end
21
- Dir[File.join(DirectoryHelper.support_dir, "matchers", "*.rb")].each do |f|
21
+ Dir[File.join(DirectoryHelper.support_dir, "matchers", "*.rb")].sort.each do |f|
22
22
  require f
23
23
  end
24
- Dir[File.join(APPSIGNAL_SPEC_DIR, "support/shared_examples", "*.rb")].each do |f|
24
+ Dir[File.join(APPSIGNAL_SPEC_DIR, "support/shared_examples", "*.rb")].sort.each do |f|
25
25
  require f
26
26
  end
27
27
  if DependencyHelper.rails_present?
28
- Dir[File.join(DirectoryHelper.support_dir, "rails", "*.rb")].each do |f|
28
+ Dir[File.join(DirectoryHelper.support_dir, "rails", "*.rb")].sort.each do |f|
29
29
  require f
30
30
  end
31
31
  end
32
32
  if DependencyHelper.hanami2_present?
33
- Dir[File.join(DirectoryHelper.support_dir, "hanami", "*.rb")].each do |f|
33
+ Dir[File.join(DirectoryHelper.support_dir, "hanami", "*.rb")].sort.each do |f|
34
34
  require f
35
35
  end
36
36
  end
@@ -12,7 +12,7 @@ RSpec::Matchers.define :have_colorized_text do |color, text|
12
12
  attr_reader :expected
13
13
  end
14
14
 
15
- COLOR_TAG_MATCHER_REGEX = /\e\[(\d+)m/
15
+ COLOR_TAG_MATCHER_REGEX = /\e\[(\d+)m/.freeze
16
16
  RSpec::Matchers.define :have_color_markers do
17
17
  match do |actual|
18
18
  actual =~ COLOR_TAG_MATCHER_REGEX
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.4.9
4
+ version: 3.4.11
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: 2023-07-27 00:00:00.000000000 Z
13
+ date: 2023-08-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -445,7 +445,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
445
  requirements:
446
446
  - - ">="
447
447
  - !ruby/object:Gem::Version
448
- version: '3.0'
448
+ version: '2.7'
449
449
  required_rubygems_version: !ruby/object:Gem::Requirement
450
450
  requirements:
451
451
  - - ">="