appsignal 2.10.6 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.semaphore/semaphore.yml +138 -62
- data/CHANGELOG.md +56 -0
- data/README.md +4 -4
- data/Rakefile +16 -4
- data/appsignal.gemspec +1 -1
- data/build_matrix.yml +20 -9
- data/ext/Rakefile +2 -0
- data/ext/agent.yml +19 -19
- data/ext/appsignal_extension.c +10 -1
- data/ext/base.rb +22 -4
- data/ext/extconf.rb +2 -0
- data/gemfiles/padrino.gemfile +2 -2
- data/gemfiles/rails-4.2.gemfile +9 -2
- data/gemfiles/rails-5.0.gemfile +1 -0
- data/gemfiles/rails-5.1.gemfile +1 -0
- data/gemfiles/rails-5.2.gemfile +1 -0
- data/gemfiles/rails-6.0.gemfile +1 -0
- data/gemfiles/resque-1.gemfile +7 -0
- data/gemfiles/{resque.gemfile → resque-2.gemfile} +1 -1
- data/lib/appsignal.rb +22 -1
- data/lib/appsignal/auth_check.rb +4 -2
- data/lib/appsignal/capistrano.rb +2 -0
- data/lib/appsignal/cli/diagnose.rb +1 -1
- data/lib/appsignal/config.rb +85 -16
- data/lib/appsignal/environment.rb +126 -0
- data/lib/appsignal/extension.rb +6 -5
- data/lib/appsignal/extension/jruby.rb +16 -5
- data/lib/appsignal/hooks.rb +25 -0
- data/lib/appsignal/hooks/active_job.rb +137 -0
- data/lib/appsignal/hooks/net_http.rb +10 -13
- data/lib/appsignal/hooks/puma.rb +1 -58
- data/lib/appsignal/hooks/redis.rb +2 -0
- data/lib/appsignal/hooks/resque.rb +60 -0
- data/lib/appsignal/hooks/sequel.rb +2 -0
- data/lib/appsignal/hooks/sidekiq.rb +18 -192
- data/lib/appsignal/integrations/delayed_job_plugin.rb +16 -3
- data/lib/appsignal/integrations/object.rb +4 -0
- data/lib/appsignal/integrations/que.rb +1 -1
- data/lib/appsignal/integrations/resque.rb +9 -12
- data/lib/appsignal/integrations/resque_active_job.rb +9 -24
- data/lib/appsignal/probes.rb +7 -0
- data/lib/appsignal/probes/puma.rb +61 -0
- data/lib/appsignal/probes/sidekiq.rb +104 -0
- data/lib/appsignal/rack/js_exception_catcher.rb +5 -2
- data/lib/appsignal/system.rb +0 -6
- data/lib/appsignal/transaction.rb +32 -7
- data/lib/appsignal/utils/deprecation_message.rb +6 -2
- data/lib/appsignal/version.rb +1 -1
- data/lib/puma/plugin/appsignal.rb +2 -1
- data/spec/lib/appsignal/auth_check_spec.rb +23 -0
- data/spec/lib/appsignal/capistrano2_spec.rb +1 -1
- data/spec/lib/appsignal/capistrano3_spec.rb +1 -1
- data/spec/lib/appsignal/cli/diagnose_spec.rb +44 -1
- data/spec/lib/appsignal/config_spec.rb +44 -1
- data/spec/lib/appsignal/environment_spec.rb +167 -0
- data/spec/lib/appsignal/extension/jruby_spec.rb +31 -28
- data/spec/lib/appsignal/extension_install_failure_spec.rb +23 -0
- data/spec/lib/appsignal/hooks/activejob_spec.rb +591 -0
- data/spec/lib/appsignal/hooks/delayed_job_spec.rb +187 -166
- data/spec/lib/appsignal/hooks/puma_spec.rb +2 -181
- data/spec/lib/appsignal/hooks/resque_spec.rb +185 -0
- data/spec/lib/appsignal/hooks/sidekiq_spec.rb +297 -549
- data/spec/lib/appsignal/hooks_spec.rb +57 -0
- data/spec/lib/appsignal/integrations/padrino_spec.rb +1 -1
- data/spec/lib/appsignal/integrations/que_spec.rb +25 -6
- data/spec/lib/appsignal/integrations/resque_active_job_spec.rb +20 -137
- data/spec/lib/appsignal/integrations/resque_spec.rb +20 -85
- data/spec/lib/appsignal/marker_spec.rb +1 -1
- data/spec/lib/appsignal/probes/puma_spec.rb +180 -0
- data/spec/lib/appsignal/probes/sidekiq_spec.rb +204 -0
- data/spec/lib/appsignal/rack/js_exception_catcher_spec.rb +9 -4
- data/spec/lib/appsignal/system_spec.rb +0 -36
- data/spec/lib/appsignal/transaction_spec.rb +35 -20
- data/spec/lib/appsignal_spec.rb +22 -0
- data/spec/lib/puma/appsignal_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- data/spec/support/helpers/action_mailer_helpers.rb +25 -0
- data/spec/support/helpers/config_helpers.rb +3 -2
- data/spec/support/helpers/dependency_helper.rb +12 -0
- data/spec/support/helpers/env_helpers.rb +1 -1
- data/spec/support/helpers/environment_metdata_helper.rb +16 -0
- data/spec/support/helpers/transaction_helpers.rb +6 -0
- data/spec/support/stubs/sidekiq/api.rb +2 -2
- data/spec/support/testing.rb +19 -19
- metadata +31 -9
- data/lib/appsignal/integrations/net_http.rb +0 -16
data/spec/spec_helper.rb
CHANGED
@@ -65,6 +65,10 @@ RSpec.configure do |config|
|
|
65
65
|
|
66
66
|
config.example_status_persistence_file_path = "spec/examples.txt"
|
67
67
|
config.fail_if_no_examples = true
|
68
|
+
config.filter_run_excluding(
|
69
|
+
:extension_installation_failure => true,
|
70
|
+
:jruby => !DependencyHelper.running_jruby?
|
71
|
+
)
|
68
72
|
config.mock_with :rspec do |mocks|
|
69
73
|
mocks.syntax = :expect
|
70
74
|
end
|
@@ -111,6 +115,7 @@ RSpec.configure do |config|
|
|
111
115
|
# in the diagnose task, so add it manually to the list of to-be cleaned up
|
112
116
|
# keys.
|
113
117
|
env_keys << "_APPSIGNAL_DIAGNOSE"
|
118
|
+
env_keys << "_TEST_APPSIGNAL_EXTENSION_FAILURE"
|
114
119
|
env_keys.each do |key|
|
115
120
|
# First set the ENV var to an empty string and then delete the key from
|
116
121
|
# the env. We set the env var to an empty string first as JRuby doesn't
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module ActionMailerHelpers
|
2
|
+
def perform_action_mailer(mailer, method, args = nil)
|
3
|
+
if DependencyHelper.rails_version >= Gem::Version.new("5.2.0")
|
4
|
+
case args
|
5
|
+
when Array
|
6
|
+
mailer.send(method, *args).deliver_later
|
7
|
+
when Hash
|
8
|
+
mailer.with(args).send(method).deliver_later
|
9
|
+
when NilClass
|
10
|
+
mailer.send(method).deliver_later
|
11
|
+
else
|
12
|
+
raise "Unknown scenario for arguments: #{args}"
|
13
|
+
end
|
14
|
+
else
|
15
|
+
# Rails 5.1 and lower
|
16
|
+
mailer_object =
|
17
|
+
if args
|
18
|
+
mailer.send(method, *args)
|
19
|
+
else
|
20
|
+
mailer.send(method)
|
21
|
+
end
|
22
|
+
mailer_object.deliver_later
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -5,12 +5,13 @@ module ConfigHelpers
|
|
5
5
|
)
|
6
6
|
end
|
7
7
|
|
8
|
-
def project_fixture_config(env = "production", initial_config = {}, logger = Appsignal.logger)
|
8
|
+
def project_fixture_config(env = "production", initial_config = {}, logger = Appsignal.logger, config_file = nil)
|
9
9
|
Appsignal::Config.new(
|
10
10
|
project_fixture_path,
|
11
11
|
env,
|
12
12
|
initial_config,
|
13
|
-
logger
|
13
|
+
logger,
|
14
|
+
config_file
|
14
15
|
)
|
15
16
|
end
|
16
17
|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
module DependencyHelper
|
2
2
|
module_function
|
3
3
|
|
4
|
+
def ruby_version
|
5
|
+
Gem::Version.new(RUBY_VERSION)
|
6
|
+
end
|
7
|
+
|
4
8
|
def running_jruby?
|
5
9
|
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
|
6
10
|
end
|
@@ -9,6 +13,14 @@ module DependencyHelper
|
|
9
13
|
dependency_present? "rails"
|
10
14
|
end
|
11
15
|
|
16
|
+
def rails6_present?
|
17
|
+
rails_present? && rails_version >= Gem::Version.new("6.0.0")
|
18
|
+
end
|
19
|
+
|
20
|
+
def rails_version
|
21
|
+
Gem.loaded_specs["rails"].version
|
22
|
+
end
|
23
|
+
|
12
24
|
def sequel_present?
|
13
25
|
dependency_present? "sequel"
|
14
26
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module EnvironmentMetadataHelper
|
2
|
+
def capture_environment_metadata_report_calls
|
3
|
+
allow(Appsignal::Extension).to receive(:set_environment_metadata)
|
4
|
+
.and_call_original
|
5
|
+
end
|
6
|
+
|
7
|
+
def expect_environment_metadata(key, value)
|
8
|
+
expect(Appsignal::Extension).to have_received(:set_environment_metadata)
|
9
|
+
.with(key, value)
|
10
|
+
end
|
11
|
+
|
12
|
+
def expect_not_environment_metadata(key)
|
13
|
+
expect(Appsignal::Extension).to_not have_received(:set_environment_metadata)
|
14
|
+
.with(key, anything)
|
15
|
+
end
|
16
|
+
end
|
@@ -44,6 +44,12 @@ module TransactionHelpers
|
|
44
44
|
created_transactions.last
|
45
45
|
end
|
46
46
|
|
47
|
+
# Set current transaction manually.
|
48
|
+
# Cleared by {clear_current_transaction!}
|
49
|
+
def set_current_transaction(transaction) # rubocop:disable Naming/AccessorMethodName
|
50
|
+
Thread.current[:appsignal_transaction] = transaction
|
51
|
+
end
|
52
|
+
|
47
53
|
# Use when {Appsignal::Transaction.clear_current_transaction!} is stubbed to
|
48
54
|
# clear the current transaction on the current thread.
|
49
55
|
def clear_current_transaction!
|
data/spec/support/testing.rb
CHANGED
@@ -38,25 +38,9 @@ module Appsignal
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
class Transaction
|
42
|
-
class << self
|
43
|
-
alias original_new new
|
44
|
-
|
45
|
-
# Override the {Appsignal::Transaction.new} method so we can track which
|
46
|
-
# transactions are created on the {Appsignal::Testing.transactions} list.
|
47
|
-
#
|
48
|
-
# @see TransactionHelpers#last_transaction
|
49
|
-
def new(*args)
|
50
|
-
transaction = original_new(*args)
|
51
|
-
Appsignal::Testing.transactions << transaction
|
52
|
-
transaction
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
41
|
class Extension
|
58
42
|
class Transaction
|
59
|
-
alias original_finish finish
|
43
|
+
alias original_finish finish if method_defined? :finish
|
60
44
|
|
61
45
|
# Override default {Extension::Transaction#finish} behavior to always
|
62
46
|
# return true, which tells the transaction to add its sample data (unless
|
@@ -72,7 +56,7 @@ module Appsignal
|
|
72
56
|
return_value
|
73
57
|
end
|
74
58
|
|
75
|
-
alias original_complete complete
|
59
|
+
alias original_complete complete if method_defined? :complete
|
76
60
|
|
77
61
|
# Override default {Extension::Transaction#complete} behavior to
|
78
62
|
# store the transaction JSON before the transaction is completed
|
@@ -94,7 +78,7 @@ module Appsignal
|
|
94
78
|
@completed || false
|
95
79
|
end
|
96
80
|
|
97
|
-
alias original_to_json to_json
|
81
|
+
alias original_to_json to_json if method_defined? :to_json
|
98
82
|
|
99
83
|
# Override default {Extension::Transaction#to_json} behavior to
|
100
84
|
# return the stored the transaction JSON when the transaction was
|
@@ -111,3 +95,19 @@ module Appsignal
|
|
111
95
|
end
|
112
96
|
end
|
113
97
|
end
|
98
|
+
|
99
|
+
module AppsignalTest
|
100
|
+
module Transaction
|
101
|
+
# Override the {Appsignal::Transaction.new} method so we can track which
|
102
|
+
# transactions are created on the {Appsignal::Testing.transactions} list.
|
103
|
+
#
|
104
|
+
# @see TransactionHelpers#last_transaction
|
105
|
+
def new(*_args)
|
106
|
+
transaction = super
|
107
|
+
Appsignal::Testing.transactions << transaction
|
108
|
+
transaction
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
Appsignal::Transaction.extend(AppsignalTest::Transaction)
|
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: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
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: 2020-
|
13
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -172,7 +172,8 @@ files:
|
|
172
172
|
- gemfiles/rails-5.1.gemfile
|
173
173
|
- gemfiles/rails-5.2.gemfile
|
174
174
|
- gemfiles/rails-6.0.gemfile
|
175
|
-
- gemfiles/resque.gemfile
|
175
|
+
- gemfiles/resque-1.gemfile
|
176
|
+
- gemfiles/resque-2.gemfile
|
176
177
|
- gemfiles/sequel-435.gemfile
|
177
178
|
- gemfiles/sequel.gemfile
|
178
179
|
- gemfiles/sinatra.gemfile
|
@@ -190,6 +191,7 @@ files:
|
|
190
191
|
- lib/appsignal/cli/notify_of_deploy.rb
|
191
192
|
- lib/appsignal/config.rb
|
192
193
|
- lib/appsignal/demo.rb
|
194
|
+
- lib/appsignal/environment.rb
|
193
195
|
- lib/appsignal/event_formatter.rb
|
194
196
|
- lib/appsignal/event_formatter/action_view/render_formatter.rb
|
195
197
|
- lib/appsignal/event_formatter/active_record/instantiation_formatter.rb
|
@@ -205,6 +207,7 @@ files:
|
|
205
207
|
- lib/appsignal/helpers/metrics.rb
|
206
208
|
- lib/appsignal/hooks.rb
|
207
209
|
- lib/appsignal/hooks/action_cable.rb
|
210
|
+
- lib/appsignal/hooks/active_job.rb
|
208
211
|
- lib/appsignal/hooks/active_support_notifications.rb
|
209
212
|
- lib/appsignal/hooks/celluloid.rb
|
210
213
|
- lib/appsignal/hooks/data_mapper.rb
|
@@ -216,6 +219,7 @@ files:
|
|
216
219
|
- lib/appsignal/hooks/que.rb
|
217
220
|
- lib/appsignal/hooks/rake.rb
|
218
221
|
- lib/appsignal/hooks/redis.rb
|
222
|
+
- lib/appsignal/hooks/resque.rb
|
219
223
|
- lib/appsignal/hooks/sequel.rb
|
220
224
|
- lib/appsignal/hooks/shoryuken.rb
|
221
225
|
- lib/appsignal/hooks/sidekiq.rb
|
@@ -227,7 +231,6 @@ files:
|
|
227
231
|
- lib/appsignal/integrations/delayed_job_plugin.rb
|
228
232
|
- lib/appsignal/integrations/grape.rb
|
229
233
|
- lib/appsignal/integrations/mongo_ruby_driver.rb
|
230
|
-
- lib/appsignal/integrations/net_http.rb
|
231
234
|
- lib/appsignal/integrations/object.rb
|
232
235
|
- lib/appsignal/integrations/padrino.rb
|
233
236
|
- lib/appsignal/integrations/que.rb
|
@@ -241,6 +244,9 @@ files:
|
|
241
244
|
- lib/appsignal/logger.rb
|
242
245
|
- lib/appsignal/marker.rb
|
243
246
|
- lib/appsignal/minutely.rb
|
247
|
+
- lib/appsignal/probes.rb
|
248
|
+
- lib/appsignal/probes/puma.rb
|
249
|
+
- lib/appsignal/probes/sidekiq.rb
|
244
250
|
- lib/appsignal/rack/generic_instrumentation.rb
|
245
251
|
- lib/appsignal/rack/js_exception_catcher.rb
|
246
252
|
- lib/appsignal/rack/rails_instrumentation.rb
|
@@ -275,6 +281,7 @@ files:
|
|
275
281
|
- spec/lib/appsignal/cli_spec.rb
|
276
282
|
- spec/lib/appsignal/config_spec.rb
|
277
283
|
- spec/lib/appsignal/demo_spec.rb
|
284
|
+
- spec/lib/appsignal/environment_spec.rb
|
278
285
|
- spec/lib/appsignal/event_formatter/action_view/render_formatter_spec.rb
|
279
286
|
- spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
|
280
287
|
- spec/lib/appsignal/event_formatter/active_record/sql_formatter_spec.rb
|
@@ -284,10 +291,12 @@ files:
|
|
284
291
|
- spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
|
285
292
|
- spec/lib/appsignal/event_formatter_spec.rb
|
286
293
|
- spec/lib/appsignal/extension/jruby_spec.rb
|
294
|
+
- spec/lib/appsignal/extension_install_failure_spec.rb
|
287
295
|
- spec/lib/appsignal/extension_spec.rb
|
288
296
|
- spec/lib/appsignal/garbage_collection_profiler_spec.rb
|
289
297
|
- spec/lib/appsignal/hooks/action_cable_spec.rb
|
290
298
|
- spec/lib/appsignal/hooks/active_support_notifications_spec.rb
|
299
|
+
- spec/lib/appsignal/hooks/activejob_spec.rb
|
291
300
|
- spec/lib/appsignal/hooks/celluloid_spec.rb
|
292
301
|
- spec/lib/appsignal/hooks/data_mapper_spec.rb
|
293
302
|
- spec/lib/appsignal/hooks/delayed_job_spec.rb
|
@@ -298,6 +307,7 @@ files:
|
|
298
307
|
- spec/lib/appsignal/hooks/que_spec.rb
|
299
308
|
- spec/lib/appsignal/hooks/rake_spec.rb
|
300
309
|
- spec/lib/appsignal/hooks/redis_spec.rb
|
310
|
+
- spec/lib/appsignal/hooks/resque_spec.rb
|
301
311
|
- spec/lib/appsignal/hooks/sequel_spec.rb
|
302
312
|
- spec/lib/appsignal/hooks/shoryuken_spec.rb
|
303
313
|
- spec/lib/appsignal/hooks/sidekiq_spec.rb
|
@@ -319,6 +329,8 @@ files:
|
|
319
329
|
- spec/lib/appsignal/logger_spec.rb
|
320
330
|
- spec/lib/appsignal/marker_spec.rb
|
321
331
|
- spec/lib/appsignal/minutely_spec.rb
|
332
|
+
- spec/lib/appsignal/probes/puma_spec.rb
|
333
|
+
- spec/lib/appsignal/probes/sidekiq_spec.rb
|
322
334
|
- spec/lib/appsignal/rack/generic_instrumentation_spec.rb
|
323
335
|
- spec/lib/appsignal/rack/js_exception_catcher_spec.rb
|
324
336
|
- spec/lib/appsignal/rack/rails_instrumentation_spec.rb
|
@@ -343,12 +355,14 @@ files:
|
|
343
355
|
- spec/support/fixtures/projects/valid/config/environments/test.rb
|
344
356
|
- spec/support/fixtures/projects/valid/log/.gitkeep
|
345
357
|
- spec/support/fixtures/uploaded_file.txt
|
358
|
+
- spec/support/helpers/action_mailer_helpers.rb
|
346
359
|
- spec/support/helpers/api_request_helper.rb
|
347
360
|
- spec/support/helpers/cli_helpers.rb
|
348
361
|
- spec/support/helpers/config_helpers.rb
|
349
362
|
- spec/support/helpers/dependency_helper.rb
|
350
363
|
- spec/support/helpers/directory_helper.rb
|
351
364
|
- spec/support/helpers/env_helpers.rb
|
365
|
+
- spec/support/helpers/environment_metdata_helper.rb
|
352
366
|
- spec/support/helpers/example_exception.rb
|
353
367
|
- spec/support/helpers/example_standard_error.rb
|
354
368
|
- spec/support/helpers/log_helpers.rb
|
@@ -376,11 +390,11 @@ licenses:
|
|
376
390
|
- MIT
|
377
391
|
metadata:
|
378
392
|
bug_tracker_uri: https://github.com/appsignal/appsignal-ruby/issues
|
379
|
-
changelog_uri: https://github.com/appsignal/appsignal-ruby/blob/
|
393
|
+
changelog_uri: https://github.com/appsignal/appsignal-ruby/blob/main/CHANGELOG.md
|
380
394
|
documentation_uri: https://docs.appsignal.com/ruby/
|
381
395
|
homepage_uri: https://docs.appsignal.com/ruby/
|
382
396
|
source_code_uri: https://github.com/appsignal/appsignal-ruby
|
383
|
-
post_install_message:
|
397
|
+
post_install_message:
|
384
398
|
rdoc_options: []
|
385
399
|
require_paths:
|
386
400
|
- lib
|
@@ -396,8 +410,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
396
410
|
- !ruby/object:Gem::Version
|
397
411
|
version: '0'
|
398
412
|
requirements: []
|
399
|
-
rubygems_version: 3.1.
|
400
|
-
signing_key:
|
413
|
+
rubygems_version: 3.1.4
|
414
|
+
signing_key:
|
401
415
|
specification_version: 4
|
402
416
|
summary: Logs performance and exception data from your app to appsignal.com
|
403
417
|
test_files:
|
@@ -415,6 +429,7 @@ test_files:
|
|
415
429
|
- spec/lib/appsignal/cli_spec.rb
|
416
430
|
- spec/lib/appsignal/config_spec.rb
|
417
431
|
- spec/lib/appsignal/demo_spec.rb
|
432
|
+
- spec/lib/appsignal/environment_spec.rb
|
418
433
|
- spec/lib/appsignal/event_formatter/action_view/render_formatter_spec.rb
|
419
434
|
- spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
|
420
435
|
- spec/lib/appsignal/event_formatter/active_record/sql_formatter_spec.rb
|
@@ -424,10 +439,12 @@ test_files:
|
|
424
439
|
- spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
|
425
440
|
- spec/lib/appsignal/event_formatter_spec.rb
|
426
441
|
- spec/lib/appsignal/extension/jruby_spec.rb
|
442
|
+
- spec/lib/appsignal/extension_install_failure_spec.rb
|
427
443
|
- spec/lib/appsignal/extension_spec.rb
|
428
444
|
- spec/lib/appsignal/garbage_collection_profiler_spec.rb
|
429
445
|
- spec/lib/appsignal/hooks/action_cable_spec.rb
|
430
446
|
- spec/lib/appsignal/hooks/active_support_notifications_spec.rb
|
447
|
+
- spec/lib/appsignal/hooks/activejob_spec.rb
|
431
448
|
- spec/lib/appsignal/hooks/celluloid_spec.rb
|
432
449
|
- spec/lib/appsignal/hooks/data_mapper_spec.rb
|
433
450
|
- spec/lib/appsignal/hooks/delayed_job_spec.rb
|
@@ -438,6 +455,7 @@ test_files:
|
|
438
455
|
- spec/lib/appsignal/hooks/que_spec.rb
|
439
456
|
- spec/lib/appsignal/hooks/rake_spec.rb
|
440
457
|
- spec/lib/appsignal/hooks/redis_spec.rb
|
458
|
+
- spec/lib/appsignal/hooks/resque_spec.rb
|
441
459
|
- spec/lib/appsignal/hooks/sequel_spec.rb
|
442
460
|
- spec/lib/appsignal/hooks/shoryuken_spec.rb
|
443
461
|
- spec/lib/appsignal/hooks/sidekiq_spec.rb
|
@@ -459,6 +477,8 @@ test_files:
|
|
459
477
|
- spec/lib/appsignal/logger_spec.rb
|
460
478
|
- spec/lib/appsignal/marker_spec.rb
|
461
479
|
- spec/lib/appsignal/minutely_spec.rb
|
480
|
+
- spec/lib/appsignal/probes/puma_spec.rb
|
481
|
+
- spec/lib/appsignal/probes/sidekiq_spec.rb
|
462
482
|
- spec/lib/appsignal/rack/generic_instrumentation_spec.rb
|
463
483
|
- spec/lib/appsignal/rack/js_exception_catcher_spec.rb
|
464
484
|
- spec/lib/appsignal/rack/rails_instrumentation_spec.rb
|
@@ -483,12 +503,14 @@ test_files:
|
|
483
503
|
- spec/support/fixtures/projects/valid/config/environments/test.rb
|
484
504
|
- spec/support/fixtures/projects/valid/log/.gitkeep
|
485
505
|
- spec/support/fixtures/uploaded_file.txt
|
506
|
+
- spec/support/helpers/action_mailer_helpers.rb
|
486
507
|
- spec/support/helpers/api_request_helper.rb
|
487
508
|
- spec/support/helpers/cli_helpers.rb
|
488
509
|
- spec/support/helpers/config_helpers.rb
|
489
510
|
- spec/support/helpers/dependency_helper.rb
|
490
511
|
- spec/support/helpers/directory_helper.rb
|
491
512
|
- spec/support/helpers/env_helpers.rb
|
513
|
+
- spec/support/helpers/environment_metdata_helper.rb
|
492
514
|
- spec/support/helpers/example_exception.rb
|
493
515
|
- spec/support/helpers/example_standard_error.rb
|
494
516
|
- spec/support/helpers/log_helpers.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Appsignal
|
4
|
-
module Integrations
|
5
|
-
module NetHttpIntegration
|
6
|
-
def request(request, body = nil, &block)
|
7
|
-
Appsignal.instrument(
|
8
|
-
"request.net_http",
|
9
|
-
"#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
|
10
|
-
) do
|
11
|
-
super
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|