appsignal 3.4.12 → 3.4.14
Sign up to get free protection for your applications and to get access to all the features.
- 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: 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: 2023-
|
13
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- ext/extconf.rb
|
161
161
|
- gemfiles/capistrano2.gemfile
|
162
162
|
- gemfiles/capistrano3.gemfile
|
163
|
+
- gemfiles/dry-monitor.gemfile
|
163
164
|
- gemfiles/grape.gemfile
|
164
165
|
- gemfiles/hanami.gemfile
|
165
166
|
- gemfiles/http5.gemfile
|
@@ -172,6 +173,7 @@ files:
|
|
172
173
|
- gemfiles/rails-6.0.gemfile
|
173
174
|
- gemfiles/rails-6.1.gemfile
|
174
175
|
- gemfiles/rails-7.0.gemfile
|
176
|
+
- gemfiles/rails-7.1.gemfile
|
175
177
|
- gemfiles/resque-2.gemfile
|
176
178
|
- gemfiles/sequel.gemfile
|
177
179
|
- gemfiles/sinatra.gemfile
|
@@ -197,6 +199,7 @@ files:
|
|
197
199
|
- lib/appsignal/event_formatter/elastic_search/search_formatter.rb
|
198
200
|
- lib/appsignal/event_formatter/faraday/request_formatter.rb
|
199
201
|
- lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter.rb
|
202
|
+
- lib/appsignal/event_formatter/rom/sql_formatter.rb
|
200
203
|
- lib/appsignal/event_formatter/sequel/sql_formatter.rb
|
201
204
|
- lib/appsignal/extension.rb
|
202
205
|
- lib/appsignal/extension/jruby.rb
|
@@ -211,6 +214,7 @@ files:
|
|
211
214
|
- lib/appsignal/hooks/celluloid.rb
|
212
215
|
- lib/appsignal/hooks/data_mapper.rb
|
213
216
|
- lib/appsignal/hooks/delayed_job.rb
|
217
|
+
- lib/appsignal/hooks/dry_monitor.rb
|
214
218
|
- lib/appsignal/hooks/excon.rb
|
215
219
|
- lib/appsignal/hooks/gvl.rb
|
216
220
|
- lib/appsignal/hooks/http.rb
|
@@ -234,6 +238,7 @@ files:
|
|
234
238
|
- lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb
|
235
239
|
- lib/appsignal/integrations/data_mapper.rb
|
236
240
|
- lib/appsignal/integrations/delayed_job_plugin.rb
|
241
|
+
- lib/appsignal/integrations/dry_monitor.rb
|
237
242
|
- lib/appsignal/integrations/excon.rb
|
238
243
|
- lib/appsignal/integrations/grape.rb
|
239
244
|
- lib/appsignal/integrations/hanami.rb
|
@@ -302,6 +307,7 @@ files:
|
|
302
307
|
- spec/lib/appsignal/event_formatter/elastic_search/search_formatter_spec.rb
|
303
308
|
- spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
|
304
309
|
- spec/lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter_spec.rb
|
310
|
+
- spec/lib/appsignal/event_formatter/rom/sql_formatter_spec.rb
|
305
311
|
- spec/lib/appsignal/event_formatter/sequel/sql_formatter_spec.rb
|
306
312
|
- spec/lib/appsignal/event_formatter_spec.rb
|
307
313
|
- spec/lib/appsignal/extension/jruby_spec.rb
|
@@ -318,6 +324,7 @@ files:
|
|
318
324
|
- spec/lib/appsignal/hooks/celluloid_spec.rb
|
319
325
|
- spec/lib/appsignal/hooks/data_mapper_spec.rb
|
320
326
|
- spec/lib/appsignal/hooks/delayed_job_spec.rb
|
327
|
+
- spec/lib/appsignal/hooks/dry_monitor_spec.rb
|
321
328
|
- spec/lib/appsignal/hooks/excon_spec.rb
|
322
329
|
- spec/lib/appsignal/hooks/gvl_spec.rb
|
323
330
|
- spec/lib/appsignal/hooks/http_spec.rb
|
@@ -392,6 +399,7 @@ files:
|
|
392
399
|
- spec/support/helpers/example_exception.rb
|
393
400
|
- spec/support/helpers/example_standard_error.rb
|
394
401
|
- spec/support/helpers/log_helpers.rb
|
402
|
+
- spec/support/helpers/rails_helper.rb
|
395
403
|
- spec/support/helpers/std_streams_helper.rb
|
396
404
|
- spec/support/helpers/system_helpers.rb
|
397
405
|
- spec/support/helpers/time_helpers.rb
|
@@ -438,7 +446,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
438
446
|
- !ruby/object:Gem::Version
|
439
447
|
version: '0'
|
440
448
|
requirements: []
|
441
|
-
rubygems_version: 3.
|
449
|
+
rubygems_version: 3.3.7
|
442
450
|
signing_key:
|
443
451
|
specification_version: 4
|
444
452
|
summary: Logs performance and exception data from your app to appsignal.com
|