appsignal 3.4.12-java → 3.4.14-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.semaphore/semaphore.yml +126 -0
- data/CHANGELOG.md +41 -1
- data/README.md +1 -0
- data/build_matrix.yml +14 -0
- data/ext/agent.rb +27 -27
- data/gemfiles/dry-monitor.gemfile +5 -0
- data/gemfiles/rails-7.1.gemfile +7 -0
- data/lib/appsignal/cli/diagnose.rb +9 -0
- data/lib/appsignal/config.rb +6 -0
- data/lib/appsignal/event_formatter/rom/sql_formatter.rb +18 -0
- data/lib/appsignal/helpers/instrumentation.rb +3 -3
- data/lib/appsignal/hooks/active_support_notifications.rb +18 -9
- data/lib/appsignal/hooks/dry_monitor.rb +20 -0
- data/lib/appsignal/hooks.rb +1 -0
- data/lib/appsignal/integrations/active_support_notifications.rb +26 -0
- data/lib/appsignal/integrations/dry_monitor.rb +22 -0
- data/lib/appsignal/integrations/railtie.rb +8 -3
- data/lib/appsignal/integrations/sidekiq.rb +1 -1
- data/lib/appsignal/probes/sidekiq.rb +5 -3
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/cli/diagnose_spec.rb +33 -1
- data/spec/lib/appsignal/event_formatter/rom/sql_formatter_spec.rb +22 -0
- data/spec/lib/appsignal/hooks/active_support_notifications_spec.rb +6 -0
- data/spec/lib/appsignal/hooks/dry_monitor_spec.rb +104 -0
- data/spec/lib/appsignal/integrations/railtie_spec.rb +91 -74
- data/spec/lib/appsignal/integrations/sidekiq_spec.rb +16 -11
- data/spec/lib/appsignal/probes/sidekiq_spec.rb +29 -6
- data/spec/support/helpers/dependency_helper.rb +4 -0
- data/spec/support/helpers/rails_helper.rb +28 -0
- metadata +11 -3
@@ -0,0 +1,28 @@
|
|
1
|
+
module RailsHelper
|
2
|
+
def with_railtie(app)
|
3
|
+
clear_rails_error_reporter! if Rails.respond_to? :error
|
4
|
+
Appsignal::Integrations::Railtie.initialize_appsignal(app)
|
5
|
+
yield
|
6
|
+
ensure
|
7
|
+
clear_rails_error_reporter!
|
8
|
+
end
|
9
|
+
|
10
|
+
def with_rails_error_reporter
|
11
|
+
if Rails.respond_to? :error
|
12
|
+
clear_rails_error_reporter!
|
13
|
+
Appsignal::Integrations::Railtie.initialize_error_reporter
|
14
|
+
end
|
15
|
+
yield
|
16
|
+
ensure
|
17
|
+
clear_rails_error_reporter!
|
18
|
+
end
|
19
|
+
|
20
|
+
def clear_rails_error_reporter!
|
21
|
+
return unless Rails.respond_to? :error
|
22
|
+
|
23
|
+
Rails
|
24
|
+
.error
|
25
|
+
.instance_variable_get(:@subscribers)
|
26
|
+
.reject! { |s| s == Appsignal::Integrations::RailsErrorReporterSubscriber }
|
27
|
+
end
|
28
|
+
end
|
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.
|
4
|
+
version: 3.4.14
|
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-
|
13
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- ext/extconf.rb
|
175
175
|
- gemfiles/capistrano2.gemfile
|
176
176
|
- gemfiles/capistrano3.gemfile
|
177
|
+
- gemfiles/dry-monitor.gemfile
|
177
178
|
- gemfiles/grape.gemfile
|
178
179
|
- gemfiles/hanami.gemfile
|
179
180
|
- gemfiles/http5.gemfile
|
@@ -186,6 +187,7 @@ files:
|
|
186
187
|
- gemfiles/rails-6.0.gemfile
|
187
188
|
- gemfiles/rails-6.1.gemfile
|
188
189
|
- gemfiles/rails-7.0.gemfile
|
190
|
+
- gemfiles/rails-7.1.gemfile
|
189
191
|
- gemfiles/resque-2.gemfile
|
190
192
|
- gemfiles/sequel.gemfile
|
191
193
|
- gemfiles/sinatra.gemfile
|
@@ -211,6 +213,7 @@ files:
|
|
211
213
|
- lib/appsignal/event_formatter/elastic_search/search_formatter.rb
|
212
214
|
- lib/appsignal/event_formatter/faraday/request_formatter.rb
|
213
215
|
- lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter.rb
|
216
|
+
- lib/appsignal/event_formatter/rom/sql_formatter.rb
|
214
217
|
- lib/appsignal/event_formatter/sequel/sql_formatter.rb
|
215
218
|
- lib/appsignal/extension.rb
|
216
219
|
- lib/appsignal/extension/jruby.rb
|
@@ -225,6 +228,7 @@ files:
|
|
225
228
|
- lib/appsignal/hooks/celluloid.rb
|
226
229
|
- lib/appsignal/hooks/data_mapper.rb
|
227
230
|
- lib/appsignal/hooks/delayed_job.rb
|
231
|
+
- lib/appsignal/hooks/dry_monitor.rb
|
228
232
|
- lib/appsignal/hooks/excon.rb
|
229
233
|
- lib/appsignal/hooks/gvl.rb
|
230
234
|
- lib/appsignal/hooks/http.rb
|
@@ -248,6 +252,7 @@ files:
|
|
248
252
|
- lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb
|
249
253
|
- lib/appsignal/integrations/data_mapper.rb
|
250
254
|
- lib/appsignal/integrations/delayed_job_plugin.rb
|
255
|
+
- lib/appsignal/integrations/dry_monitor.rb
|
251
256
|
- lib/appsignal/integrations/excon.rb
|
252
257
|
- lib/appsignal/integrations/grape.rb
|
253
258
|
- lib/appsignal/integrations/hanami.rb
|
@@ -316,6 +321,7 @@ files:
|
|
316
321
|
- spec/lib/appsignal/event_formatter/elastic_search/search_formatter_spec.rb
|
317
322
|
- spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
|
318
323
|
- spec/lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter_spec.rb
|
324
|
+
- spec/lib/appsignal/event_formatter/rom/sql_formatter_spec.rb
|
319
325
|
- spec/lib/appsignal/event_formatter/sequel/sql_formatter_spec.rb
|
320
326
|
- spec/lib/appsignal/event_formatter_spec.rb
|
321
327
|
- spec/lib/appsignal/extension/jruby_spec.rb
|
@@ -332,6 +338,7 @@ files:
|
|
332
338
|
- spec/lib/appsignal/hooks/celluloid_spec.rb
|
333
339
|
- spec/lib/appsignal/hooks/data_mapper_spec.rb
|
334
340
|
- spec/lib/appsignal/hooks/delayed_job_spec.rb
|
341
|
+
- spec/lib/appsignal/hooks/dry_monitor_spec.rb
|
335
342
|
- spec/lib/appsignal/hooks/excon_spec.rb
|
336
343
|
- spec/lib/appsignal/hooks/gvl_spec.rb
|
337
344
|
- spec/lib/appsignal/hooks/http_spec.rb
|
@@ -406,6 +413,7 @@ files:
|
|
406
413
|
- spec/support/helpers/example_exception.rb
|
407
414
|
- spec/support/helpers/example_standard_error.rb
|
408
415
|
- spec/support/helpers/log_helpers.rb
|
416
|
+
- spec/support/helpers/rails_helper.rb
|
409
417
|
- spec/support/helpers/std_streams_helper.rb
|
410
418
|
- spec/support/helpers/system_helpers.rb
|
411
419
|
- spec/support/helpers/time_helpers.rb
|
@@ -452,7 +460,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
452
460
|
- !ruby/object:Gem::Version
|
453
461
|
version: '0'
|
454
462
|
requirements: []
|
455
|
-
rubygems_version: 3.
|
463
|
+
rubygems_version: 3.3.7
|
456
464
|
signing_key:
|
457
465
|
specification_version: 4
|
458
466
|
summary: Logs performance and exception data from your app to appsignal.com
|