airbrake 8.2.1 → 8.3.0
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/lib/airbrake/rails.rb +10 -1
- data/lib/airbrake/rails/action_cable.rb +33 -0
- data/lib/airbrake/rails/action_cable/notify_callback.rb +20 -0
- data/lib/airbrake/rails/action_controller_performance_breakdown_subscriber.rb +32 -0
- data/lib/airbrake/version.rb +1 -1
- data/spec/apps/rails/logs/32.log +168 -0
- data/spec/apps/rails/logs/42.log +377 -0
- data/spec/apps/sinatra/{dummy_app.rb → sinatra_test_app.rb} +1 -1
- data/spec/integration/rack/rack_spec.rb +0 -1
- data/spec/integration/rails/rails_spec.rb +20 -1
- data/spec/integration/rails/rake_spec.rb +0 -2
- data/spec/integration/sinatra/sinatra_spec.rb +2 -3
- data/spec/unit/logger_spec.rb +0 -2
- data/spec/unit/rack/context_filter_spec.rb +0 -2
- data/spec/unit/rack/http_headers_filter_spec.rb +0 -2
- data/spec/unit/rack/http_params_filter_spec.rb +0 -2
- data/spec/unit/rack/middleware_spec.rb +0 -2
- data/spec/unit/rack/request_body_filter_spec.rb +0 -2
- data/spec/unit/rack/request_store_spec.rb +0 -2
- data/spec/unit/rack/route_filter_spec.rb +0 -2
- data/spec/unit/rack/session_filter_spec.rb +0 -2
- data/spec/unit/rack/user_filter_spec.rb +0 -2
- data/spec/unit/rack/user_spec.rb +0 -2
- data/spec/unit/rails/action_cable/notify_callback_spec.rb +26 -0
- data/spec/unit/rake/tasks_spec.rb +0 -2
- data/spec/unit/shoryuken_spec.rb +0 -1
- data/spec/unit/sidekiq/retryable_jobs_filter_spec.rb +0 -2
- data/spec/unit/sidekiq_spec.rb +0 -2
- data/spec/unit/sneakers_spec.rb +0 -1
- metadata +9 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d66c9a0d425a9603e3834b3031a900af0ca6508
|
|
4
|
+
data.tar.gz: 1a7faaaa2dcc1eec9d08768c895e28320b0f6bef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 860d464f6c7afabacb5771584fdcdcad41d20f15be0ed970324830c5667ca1ee9544e2c02399858bfabe45e8e4719928b85b62ddb20c72cba4bbdb1feab64fc5
|
|
7
|
+
data.tar.gz: 8f0b20da65fe963ab10d9b3da7c760a44184c025a33c4160d1e780013938ee606bc83b4c7dece98828e02289806738b987d469ab214d545c1ecc08ed48da58cb
|
data/lib/airbrake/rails.rb
CHANGED
|
@@ -7,7 +7,9 @@ module Airbrake
|
|
|
7
7
|
initializer('airbrake.middleware') do |app|
|
|
8
8
|
require 'airbrake/rails/action_controller_route_subscriber'
|
|
9
9
|
require 'airbrake/rails/action_controller_notify_subscriber'
|
|
10
|
-
require 'airbrake/rails/
|
|
10
|
+
require 'airbrake/rails/action_controller_performance_breakdown_subscriber'
|
|
11
|
+
|
|
12
|
+
require 'airbrake/rails/active_record_subscriber' if defined?(ActiveRecord)
|
|
11
13
|
|
|
12
14
|
# Since Rails 3.2 the ActionDispatch::DebugExceptions middleware is
|
|
13
15
|
# responsible for logging exceptions and showing a debugging page in
|
|
@@ -80,6 +82,13 @@ module Airbrake
|
|
|
80
82
|
end
|
|
81
83
|
end
|
|
82
84
|
|
|
85
|
+
initializer('airbrake.action_cable') do
|
|
86
|
+
ActiveSupport.on_load(:action_cable) do
|
|
87
|
+
# Reports exceptions occurring in ActionCable connections.
|
|
88
|
+
require 'airbrake/rails/action_cable'
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
83
92
|
runner do
|
|
84
93
|
at_exit do
|
|
85
94
|
Airbrake.notify_sync($ERROR_INFO) if $ERROR_INFO
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require 'airbrake/rails/action_cable/notify_callback'
|
|
2
|
+
|
|
3
|
+
%i[subscribe unsubscribe].each do |callback_name|
|
|
4
|
+
ActionCable::Channel::Base.set_callback(
|
|
5
|
+
callback_name, :around, prepend: true
|
|
6
|
+
) do |channel, inner|
|
|
7
|
+
Airbrake::Rails::ActionCable::NotifyCallback.call(channel, inner)
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
module ActionCable
|
|
12
|
+
module Channel
|
|
13
|
+
# @since v8.3.0
|
|
14
|
+
# @api private
|
|
15
|
+
# @see https://github.com/rails/rails/blob/master/actioncable/lib/action_cable/channel/base.rb
|
|
16
|
+
class Base
|
|
17
|
+
alias perform_action_without_airbrake perform_action
|
|
18
|
+
|
|
19
|
+
def perform_action(*args, &block)
|
|
20
|
+
perform_action_without_airbrake(*args, &block)
|
|
21
|
+
rescue Exception => ex # rubocop:disable Lint/RescueException
|
|
22
|
+
Airbrake.notify(ex) do |notice|
|
|
23
|
+
notice.stash[:action_cable_connection] = connection
|
|
24
|
+
notice[:context][:component] = self.class
|
|
25
|
+
notice[:context][:action] = args.first['action']
|
|
26
|
+
notice[:params].merge!(args.first)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
raise ex
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Airbrake
|
|
2
|
+
module Rails
|
|
3
|
+
module ActionCable
|
|
4
|
+
# @since v8.3.0
|
|
5
|
+
# @api private
|
|
6
|
+
class NotifyCallback
|
|
7
|
+
def self.call(channel, block)
|
|
8
|
+
block.call
|
|
9
|
+
rescue Exception => ex # rubocop:disable Lint/RescueException
|
|
10
|
+
notice = Airbrake.build_notice(ex)
|
|
11
|
+
notice[:context][:component] = 'action_cable'
|
|
12
|
+
notice[:context][:action] = channel.channel_name
|
|
13
|
+
Airbrake.notify(notice)
|
|
14
|
+
|
|
15
|
+
raise ex
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module Airbrake
|
|
2
|
+
module Rails
|
|
3
|
+
# @since v8.3.0
|
|
4
|
+
class ActionControllerPerformanceBreakdownSubscriber
|
|
5
|
+
def call(*args)
|
|
6
|
+
routes = Airbrake::Rack::RequestStore[:routes]
|
|
7
|
+
return if !routes || routes.none?
|
|
8
|
+
|
|
9
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
|
10
|
+
payload = event.payload
|
|
11
|
+
|
|
12
|
+
routes.each do |route, method|
|
|
13
|
+
Airbrake.notify_performance_breakdown(
|
|
14
|
+
method: method,
|
|
15
|
+
route: route,
|
|
16
|
+
response_type: payload[:format],
|
|
17
|
+
groups: {
|
|
18
|
+
db: payload[:db_runtime],
|
|
19
|
+
view: payload[:view_runtime]
|
|
20
|
+
},
|
|
21
|
+
start_time: event.time
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
ActiveSupport::Notifications.subscribe(
|
|
30
|
+
'process_action.action_controller',
|
|
31
|
+
Airbrake::Rails::ActionControllerPerformanceBreakdownSubscriber.new
|
|
32
|
+
)
|
data/lib/airbrake/version.rb
CHANGED
data/spec/apps/rails/logs/32.log
CHANGED
|
@@ -1302,3 +1302,171 @@ AirbrakeTestError (AirbrakeTestError):
|
|
|
1302
1302
|
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1303
1303
|
|
|
1304
1304
|
|
|
1305
|
+
Connecting to database specified by DATABASE_URL
|
|
1306
|
+
[1m[36m (2.6ms)[0m [1mselect sqlite_version(*)[0m
|
|
1307
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1308
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1309
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1310
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:22:22 +0200
|
|
1311
|
+
Processing by DummyController#crash as HTML
|
|
1312
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1314
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1315
|
+
#<AirbrakeTestError: after_commit>
|
|
1316
|
+
Completed 500 Internal Server Error in 25.3ms
|
|
1317
|
+
|
|
1318
|
+
RSpec::Mocks::MockExpectationError (Airbrake received :notify_performance_breakdown with unexpected arguments
|
|
1319
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>nil, :file=>nil, :line=>nil))
|
|
1320
|
+
got: ({:groups=>{:db=>nil, :view=>nil}, :method=>"GET", :response_type=>:html, :route=>"/crash(.:format)", :start_time=>2019-03-09 00:22:22.156983000 +0200})
|
|
1321
|
+
Diff:[0m
|
|
1322
|
+
[0m[34m@@ -1,2 +1,6 @@
|
|
1323
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>nil, :file=>nil, :line=>nil)"]
|
|
1324
|
+
[0m[32m+[{:groups=>{:db=>nil, :view=>nil},
|
|
1325
|
+
[0m[32m+ :method=>"GET",
|
|
1326
|
+
[0m[32m+ :response_type=>:html,
|
|
1327
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
|
1328
|
+
[0m[32m+ :start_time=>2019-03-09 00:22:22.156983000 +0200}]
|
|
1329
|
+
[0m):
|
|
1330
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:13:in `block in call'
|
|
1331
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `each'
|
|
1332
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `call'
|
|
1333
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1334
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
Connecting to database specified by DATABASE_URL
|
|
1338
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
|
1339
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1340
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1341
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1342
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:22:35 +0200
|
|
1343
|
+
Processing by DummyController#crash as HTML
|
|
1344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1345
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1346
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1347
|
+
#<AirbrakeTestError: after_commit>
|
|
1348
|
+
Completed 500 Internal Server Error in 28.2ms
|
|
1349
|
+
|
|
1350
|
+
AirbrakeTestError (AirbrakeTestError):
|
|
1351
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1352
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
Connecting to database specified by DATABASE_URL
|
|
1356
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
|
1357
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1358
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1359
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1360
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:22:51 +0200
|
|
1361
|
+
Processing by DummyController#crash as HTML
|
|
1362
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1363
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1364
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1365
|
+
#<AirbrakeTestError: after_commit>
|
|
1366
|
+
Completed 500 Internal Server Error in 34.1ms
|
|
1367
|
+
|
|
1368
|
+
AirbrakeTestError (AirbrakeTestError):
|
|
1369
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1370
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
Connecting to database specified by DATABASE_URL
|
|
1374
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
|
1375
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1376
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1377
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1378
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:22:59 +0200
|
|
1379
|
+
Processing by DummyController#crash as HTML
|
|
1380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1381
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1382
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1383
|
+
#<AirbrakeTestError: after_commit>
|
|
1384
|
+
Completed 500 Internal Server Error in 28.5ms
|
|
1385
|
+
|
|
1386
|
+
AirbrakeTestError (AirbrakeTestError):
|
|
1387
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1388
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
Connecting to database specified by DATABASE_URL
|
|
1392
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
|
1393
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1394
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1395
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1396
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:23:27 +0200
|
|
1397
|
+
Processing by DummyController#crash as HTML
|
|
1398
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1399
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1400
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1401
|
+
#<AirbrakeTestError: after_commit>
|
|
1402
|
+
Completed 500 Internal Server Error in 28.2ms
|
|
1403
|
+
|
|
1404
|
+
AirbrakeTestError (AirbrakeTestError):
|
|
1405
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1406
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
Connecting to database specified by DATABASE_URL
|
|
1410
|
+
[1m[36m (1.0ms)[0m [1mselect sqlite_version(*)[0m
|
|
1411
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1412
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1413
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1414
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:24:16 +0200
|
|
1415
|
+
Processing by DummyController#crash as HTML
|
|
1416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1417
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1418
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1419
|
+
#<AirbrakeTestError: after_commit>
|
|
1420
|
+
Completed 500 Internal Server Error in 27.9ms
|
|
1421
|
+
|
|
1422
|
+
RSpec::Mocks::MockExpectationError (Airbrake received :notify_performance_breakdown with unexpected arguments
|
|
1423
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :response_type=>:html, :groups=>{:db=>#<RS...klass=Float>, :view=>#<RSpec::Mocks::ArgumentMatchers::InstanceOf:0x00007fbb873f6098 @klass=Float>}))
|
|
1424
|
+
got: ({:groups=>{:db=>nil, :view=>nil}, :method=>"GET", :response_type=>:html, :route=>"/crash(.:format)", :start_time=>2019-03-09 00:24:16.294496000 +0200})
|
|
1425
|
+
Diff:[0m
|
|
1426
|
+
[0m[34m@@ -1,2 +1,6 @@
|
|
1427
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :response_type=>:html, :groups=>{:db=>#<RSpec::Mocks::ArgumentMatchers::InstanceOf:0x00007fbb873f60c0 @klass=Float>, :view=>#<RSpec::Mocks::ArgumentMatchers::InstanceOf:0x00007fbb873f6098 @klass=Float>})"]
|
|
1428
|
+
[0m[32m+[{:groups=>{:db=>nil, :view=>nil},
|
|
1429
|
+
[0m[32m+ :method=>"GET",
|
|
1430
|
+
[0m[32m+ :response_type=>:html,
|
|
1431
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
|
1432
|
+
[0m[32m+ :start_time=>2019-03-09 00:24:16.294496000 +0200}]
|
|
1433
|
+
[0m):
|
|
1434
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:13:in `block in call'
|
|
1435
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `each'
|
|
1436
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `call'
|
|
1437
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1438
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
Connecting to database specified by DATABASE_URL
|
|
1442
|
+
[1m[36m (0.9ms)[0m [1mselect sqlite_version(*)[0m
|
|
1443
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
|
1444
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
1445
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
1446
|
+
Started GET "/crash" for 127.0.0.1 at 2019-03-09 00:24:43 +0200
|
|
1447
|
+
Processing by DummyController#crash as HTML
|
|
1448
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1449
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
1450
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
1451
|
+
#<AirbrakeTestError: after_commit>
|
|
1452
|
+
Completed 500 Internal Server Error in 27.0ms
|
|
1453
|
+
|
|
1454
|
+
RSpec::Mocks::MockExpectationError (Airbrake received :notify_performance_breakdown with unexpected arguments
|
|
1455
|
+
expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :response_type=>:html, :groups=>{:db=>#<RS...5b931498 @klass=Float>, :view=>#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007fb75a144e20>}))
|
|
1456
|
+
got: ({:groups=>{:db=>nil, :view=>nil}, :method=>"GET", :response_type=>:html, :route=>"/crash(.:format)", :start_time=>2019-03-09 00:24:43.456533000 +0200})
|
|
1457
|
+
Diff:[0m
|
|
1458
|
+
[0m[34m@@ -1,2 +1,6 @@
|
|
1459
|
+
[0m[31m-["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :response_type=>:html, :groups=>{:db=>#<RSpec::Mocks::ArgumentMatchers::KindOf:0x00007fb75b931498 @klass=Float>, :view=>#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x00007fb75a144e20>})"]
|
|
1460
|
+
[0m[32m+[{:groups=>{:db=>nil, :view=>nil},
|
|
1461
|
+
[0m[32m+ :method=>"GET",
|
|
1462
|
+
[0m[32m+ :response_type=>:html,
|
|
1463
|
+
[0m[32m+ :route=>"/crash(.:format)",
|
|
1464
|
+
[0m[32m+ :start_time=>2019-03-09 00:24:43.456533000 +0200}]
|
|
1465
|
+
[0m):
|
|
1466
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:13:in `block in call'
|
|
1467
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `each'
|
|
1468
|
+
lib/airbrake/rails/action_controller_breakdown_subscriber.rb:12:in `call'
|
|
1469
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1470
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1471
|
+
|
|
1472
|
+
|
data/spec/apps/rails/logs/42.log
CHANGED
|
@@ -631,3 +631,380 @@ AirbrakeTestError (after_commit):
|
|
|
631
631
|
lib/airbrake/rack/middleware.rb:40:in `call'
|
|
632
632
|
|
|
633
633
|
|
|
634
|
+
D, [2019-03-11T14:35:14.590954 #69288] DEBUG -- : [1m[36m (3.2ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) [0m
|
|
635
|
+
D, [2019-03-11T14:35:14.595424 #69288] DEBUG -- : [1m[35m (0.1ms)[0m CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)
|
|
636
|
+
D, [2019-03-11T14:35:14.595688 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
637
|
+
D, [2019-03-11T14:35:14.596031 #69288] DEBUG -- : [1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
638
|
+
I, [2019-03-11T14:35:14.823953 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:14 +0200
|
|
639
|
+
I, [2019-03-11T14:35:14.826052 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
640
|
+
D, [2019-03-11T14:35:14.833828 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
641
|
+
D, [2019-03-11T14:35:14.838055 #69288] DEBUG -- : [1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
642
|
+
D, [2019-03-11T14:35:14.839684 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
643
|
+
I, [2019-03-11T14:35:14.841014 #69288] INFO -- : Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.5ms)
|
|
644
|
+
F, [2019-03-11T14:35:14.855598 #69288] FATAL -- :
|
|
645
|
+
AirbrakeTestError (after_commit):
|
|
646
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
647
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
I, [2019-03-11T14:35:16.866970 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:16 +0200
|
|
651
|
+
I, [2019-03-11T14:35:16.867786 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
652
|
+
D, [2019-03-11T14:35:16.868232 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
653
|
+
D, [2019-03-11T14:35:16.869854 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
654
|
+
D, [2019-03-11T14:35:16.871215 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
655
|
+
I, [2019-03-11T14:35:16.872471 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
|
656
|
+
F, [2019-03-11T14:35:16.882362 #69288] FATAL -- :
|
|
657
|
+
AirbrakeTestError (after_commit):
|
|
658
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
659
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
I, [2019-03-11T14:35:18.889075 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:18 +0200
|
|
663
|
+
I, [2019-03-11T14:35:18.889858 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
664
|
+
D, [2019-03-11T14:35:18.890332 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
665
|
+
D, [2019-03-11T14:35:18.892086 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
666
|
+
D, [2019-03-11T14:35:18.893548 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
667
|
+
I, [2019-03-11T14:35:18.894754 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
668
|
+
F, [2019-03-11T14:35:18.904617 #69288] FATAL -- :
|
|
669
|
+
AirbrakeTestError (after_commit):
|
|
670
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
671
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
I, [2019-03-11T14:35:20.911059 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:20 +0200
|
|
675
|
+
I, [2019-03-11T14:35:20.911859 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
676
|
+
D, [2019-03-11T14:35:20.912332 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
677
|
+
D, [2019-03-11T14:35:20.914220 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
678
|
+
D, [2019-03-11T14:35:20.915859 #69288] DEBUG -- : [1m[35m (0.1ms)[0m commit transaction
|
|
679
|
+
I, [2019-03-11T14:35:20.917376 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
680
|
+
F, [2019-03-11T14:35:20.930021 #69288] FATAL -- :
|
|
681
|
+
AirbrakeTestError (after_commit):
|
|
682
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
683
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
I, [2019-03-11T14:35:22.933527 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:22 +0200
|
|
687
|
+
I, [2019-03-11T14:35:22.934326 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
688
|
+
D, [2019-03-11T14:35:22.934763 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
689
|
+
D, [2019-03-11T14:35:22.936362 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
690
|
+
D, [2019-03-11T14:35:22.937847 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
691
|
+
I, [2019-03-11T14:35:22.939142 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
692
|
+
F, [2019-03-11T14:35:22.949458 #69288] FATAL -- :
|
|
693
|
+
AirbrakeTestError (after_commit):
|
|
694
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
695
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
I, [2019-03-11T14:35:24.956465 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:24 +0200
|
|
699
|
+
I, [2019-03-11T14:35:24.957270 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
700
|
+
D, [2019-03-11T14:35:24.957663 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
701
|
+
D, [2019-03-11T14:35:24.959102 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
702
|
+
D, [2019-03-11T14:35:24.960410 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
703
|
+
I, [2019-03-11T14:35:24.961539 #69288] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
|
704
|
+
F, [2019-03-11T14:35:24.971588 #69288] FATAL -- :
|
|
705
|
+
AirbrakeTestError (after_commit):
|
|
706
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
707
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
I, [2019-03-11T14:35:26.976789 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:26 +0200
|
|
711
|
+
I, [2019-03-11T14:35:26.977569 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
712
|
+
D, [2019-03-11T14:35:26.978029 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
713
|
+
D, [2019-03-11T14:35:26.979698 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
714
|
+
D, [2019-03-11T14:35:26.981352 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
|
715
|
+
I, [2019-03-11T14:35:26.982949 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
716
|
+
F, [2019-03-11T14:35:26.992339 #69288] FATAL -- :
|
|
717
|
+
AirbrakeTestError (after_commit):
|
|
718
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
719
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
I, [2019-03-11T14:35:26.993661 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:26 +0200
|
|
723
|
+
I, [2019-03-11T14:35:26.994335 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
724
|
+
D, [2019-03-11T14:35:26.994795 #69288] DEBUG -- : [1m[35m (0.0ms)[0m begin transaction
|
|
725
|
+
D, [2019-03-11T14:35:26.996178 #69288] DEBUG -- : [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
726
|
+
D, [2019-03-11T14:35:26.997567 #69288] DEBUG -- : [1m[35m (0.1ms)[0m commit transaction
|
|
727
|
+
I, [2019-03-11T14:35:26.998873 #69288] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
|
|
728
|
+
F, [2019-03-11T14:35:27.000287 #69288] FATAL -- :
|
|
729
|
+
AirbrakeTestError (after_commit):
|
|
730
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
731
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
I, [2019-03-11T14:35:27.001460 #69288] INFO -- : Started GET "/" for 127.0.0.1 at 2019-03-11 14:35:27 +0200
|
|
735
|
+
I, [2019-03-11T14:35:27.002056 #69288] INFO -- : Processing by DummyController#index as HTML
|
|
736
|
+
I, [2019-03-11T14:35:27.010203 #69288] INFO -- : Rendered dummy/index.html.erb within layouts/application (1.1ms)
|
|
737
|
+
I, [2019-03-11T14:35:27.010615 #69288] INFO -- : Completed 200 OK in 8ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
|
738
|
+
I, [2019-03-11T14:35:27.012449 #69288] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-03-11 14:35:27 +0200
|
|
739
|
+
I, [2019-03-11T14:35:27.013143 #69288] INFO -- : Processing by DummyController#active_job as HTML
|
|
740
|
+
I, [2019-03-11T14:35:27.018430 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
|
|
741
|
+
F, [2019-03-11T14:35:27.020176 #69288] FATAL -- :
|
|
742
|
+
AirbrakeTestError (active_job error):
|
|
743
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
744
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
I, [2019-03-11T14:35:29.024582 #69288] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-03-11 14:35:29 +0200
|
|
748
|
+
I, [2019-03-11T14:35:29.025378 #69288] INFO -- : Processing by DummyController#active_job as HTML
|
|
749
|
+
I, [2019-03-11T14:35:29.027276 #69288] INFO -- : Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
|
750
|
+
F, [2019-03-11T14:35:29.028620 #69288] FATAL -- :
|
|
751
|
+
AirbrakeTestError (active_job error):
|
|
752
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
753
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
I, [2019-03-11T14:35:31.032709 #69288] INFO -- : Started GET "/resque" for 127.0.0.1 at 2019-03-11 14:35:31 +0200
|
|
757
|
+
I, [2019-03-11T14:35:31.036451 #69288] INFO -- : Processing by DummyController#resque as HTML
|
|
758
|
+
I, [2019-03-11T14:35:31.038727 #69288] INFO -- : Rendered dummy/resque.html.erb within layouts/application (0.2ms)
|
|
759
|
+
I, [2019-03-11T14:35:31.039045 #69288] INFO -- : Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
760
|
+
I, [2019-03-11T14:35:31.040625 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:35:31 +0200
|
|
761
|
+
I, [2019-03-11T14:35:31.041097 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
762
|
+
D, [2019-03-11T14:35:31.041472 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
763
|
+
D, [2019-03-11T14:35:31.042755 #69288] DEBUG -- : [1m[35mSQL (0.0ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
764
|
+
D, [2019-03-11T14:35:31.043882 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
765
|
+
I, [2019-03-11T14:35:31.044807 #69288] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
|
766
|
+
F, [2019-03-11T14:35:31.046106 #69288] FATAL -- :
|
|
767
|
+
AirbrakeTestError (after_commit):
|
|
768
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
769
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
I, [2019-03-11T14:35:31.047174 #69288] INFO -- : Started HEAD "/crash" for 127.0.0.1 at 2019-03-11 14:35:31 +0200
|
|
773
|
+
I, [2019-03-11T14:35:31.049885 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
774
|
+
D, [2019-03-11T14:35:31.050436 #69288] DEBUG -- : [1m[35m (0.0ms)[0m begin transaction
|
|
775
|
+
D, [2019-03-11T14:35:31.051924 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
776
|
+
D, [2019-03-11T14:35:31.053323 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
777
|
+
I, [2019-03-11T14:35:31.054593 #69288] INFO -- : Completed 0 in 4ms (ActiveRecord: 0.2ms)
|
|
778
|
+
F, [2019-03-11T14:35:31.056053 #69288] FATAL -- :
|
|
779
|
+
AirbrakeTestError (after_commit):
|
|
780
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
781
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
I, [2019-03-11T14:35:31.057446 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:31 +0200
|
|
785
|
+
I, [2019-03-11T14:35:31.058279 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
786
|
+
I, [2019-03-11T14:35:31.058323 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
787
|
+
I, [2019-03-11T14:35:31.069110 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.3ms)
|
|
788
|
+
I, [2019-03-11T14:35:31.069435 #69288] INFO -- : Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
|
789
|
+
I, [2019-03-11T14:35:33.073522 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:33 +0200
|
|
790
|
+
I, [2019-03-11T14:35:33.074471 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
791
|
+
I, [2019-03-11T14:35:33.074564 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
792
|
+
I, [2019-03-11T14:35:33.083868 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
|
|
793
|
+
I, [2019-03-11T14:35:33.084145 #69288] INFO -- : Completed 200 OK in 9ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
794
|
+
I, [2019-03-11T14:35:35.090524 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:35 +0200
|
|
795
|
+
I, [2019-03-11T14:35:35.091329 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
796
|
+
I, [2019-03-11T14:35:35.091373 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
797
|
+
I, [2019-03-11T14:35:35.100892 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
|
|
798
|
+
I, [2019-03-11T14:35:35.101219 #69288] INFO -- : Completed 200 OK in 10ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
799
|
+
I, [2019-03-11T14:35:37.108020 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:37 +0200
|
|
800
|
+
I, [2019-03-11T14:35:37.109307 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
801
|
+
I, [2019-03-11T14:35:37.109383 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
802
|
+
I, [2019-03-11T14:35:37.119642 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.3ms)
|
|
803
|
+
I, [2019-03-11T14:35:37.120086 #69288] INFO -- : Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
|
804
|
+
I, [2019-03-11T14:35:39.124774 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:39 +0200
|
|
805
|
+
I, [2019-03-11T14:35:39.125658 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
806
|
+
I, [2019-03-11T14:35:39.125710 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
807
|
+
I, [2019-03-11T14:35:39.134861 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.3ms)
|
|
808
|
+
I, [2019-03-11T14:35:39.135173 #69288] INFO -- : Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
|
809
|
+
I, [2019-03-11T14:35:41.142251 #69288] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:41 +0200
|
|
810
|
+
I, [2019-03-11T14:35:41.143228 #69288] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
|
|
811
|
+
I, [2019-03-11T14:35:41.143285 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
812
|
+
I, [2019-03-11T14:35:41.153865 #69288] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
|
|
813
|
+
I, [2019-03-11T14:35:41.154166 #69288] INFO -- : Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
814
|
+
I, [2019-03-11T14:35:43.159680 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:43 +0200
|
|
815
|
+
I, [2019-03-11T14:35:43.160928 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
816
|
+
I, [2019-03-11T14:35:43.161010 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
817
|
+
I, [2019-03-11T14:35:43.171452 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
|
|
818
|
+
I, [2019-03-11T14:35:43.171784 #69288] INFO -- : Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
|
819
|
+
I, [2019-03-11T14:35:45.179349 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:45 +0200
|
|
820
|
+
I, [2019-03-11T14:35:45.180415 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
821
|
+
I, [2019-03-11T14:35:45.180480 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
822
|
+
I, [2019-03-11T14:35:45.191561 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
|
|
823
|
+
I, [2019-03-11T14:35:45.191874 #69288] INFO -- : Completed 200 OK in 11ms (Views: 4.6ms | ActiveRecord: 0.0ms)
|
|
824
|
+
I, [2019-03-11T14:35:47.197169 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:47 +0200
|
|
825
|
+
I, [2019-03-11T14:35:47.198249 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
826
|
+
I, [2019-03-11T14:35:47.198308 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
827
|
+
I, [2019-03-11T14:35:47.208785 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
|
|
828
|
+
I, [2019-03-11T14:35:47.209211 #69288] INFO -- : Completed 200 OK in 11ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
|
829
|
+
I, [2019-03-11T14:35:49.216486 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:49 +0200
|
|
830
|
+
I, [2019-03-11T14:35:49.217580 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
831
|
+
I, [2019-03-11T14:35:49.217644 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
832
|
+
I, [2019-03-11T14:35:49.227188 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
|
|
833
|
+
I, [2019-03-11T14:35:49.227482 #69288] INFO -- : Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
|
834
|
+
I, [2019-03-11T14:35:51.233704 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:51 +0200
|
|
835
|
+
I, [2019-03-11T14:35:51.234758 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
836
|
+
I, [2019-03-11T14:35:51.234812 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
837
|
+
I, [2019-03-11T14:35:51.244337 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.3ms)
|
|
838
|
+
I, [2019-03-11T14:35:51.244753 #69288] INFO -- : Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
|
839
|
+
I, [2019-03-11T14:35:53.250849 #69288] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:53 +0200
|
|
840
|
+
I, [2019-03-11T14:35:53.251774 #69288] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
|
|
841
|
+
I, [2019-03-11T14:35:53.251821 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
842
|
+
I, [2019-03-11T14:35:53.260348 #69288] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
|
|
843
|
+
I, [2019-03-11T14:35:53.260666 #69288] INFO -- : Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.0ms)
|
|
844
|
+
I, [2019-03-11T14:35:55.269031 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:55 +0200
|
|
845
|
+
I, [2019-03-11T14:35:55.270029 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
846
|
+
I, [2019-03-11T14:35:55.270086 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
847
|
+
D, [2019-03-11T14:35:55.270593 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
848
|
+
D, [2019-03-11T14:35:55.272514 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
849
|
+
D, [2019-03-11T14:35:55.274068 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
850
|
+
I, [2019-03-11T14:35:55.275455 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
851
|
+
F, [2019-03-11T14:35:55.285879 #69288] FATAL -- :
|
|
852
|
+
AirbrakeTestError (after_commit):
|
|
853
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
854
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
I, [2019-03-11T14:35:57.291145 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:57 +0200
|
|
858
|
+
I, [2019-03-11T14:35:57.292090 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
859
|
+
I, [2019-03-11T14:35:57.292163 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
860
|
+
D, [2019-03-11T14:35:57.292604 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
861
|
+
D, [2019-03-11T14:35:57.294351 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
862
|
+
D, [2019-03-11T14:35:57.295813 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
863
|
+
I, [2019-03-11T14:35:57.297176 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
864
|
+
F, [2019-03-11T14:35:57.309096 #69288] FATAL -- :
|
|
865
|
+
AirbrakeTestError (after_commit):
|
|
866
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
867
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
I, [2019-03-11T14:35:59.316993 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:35:59 +0200
|
|
871
|
+
I, [2019-03-11T14:35:59.318319 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
872
|
+
I, [2019-03-11T14:35:59.318413 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
873
|
+
D, [2019-03-11T14:35:59.318905 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
874
|
+
D, [2019-03-11T14:35:59.320791 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
875
|
+
D, [2019-03-11T14:35:59.322549 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
876
|
+
I, [2019-03-11T14:35:59.324152 #69288] INFO -- : Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
|
|
877
|
+
F, [2019-03-11T14:35:59.334669 #69288] FATAL -- :
|
|
878
|
+
AirbrakeTestError (after_commit):
|
|
879
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
880
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
I, [2019-03-11T14:36:01.339695 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:36:01 +0200
|
|
884
|
+
I, [2019-03-11T14:36:01.344611 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
885
|
+
I, [2019-03-11T14:36:01.344683 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
886
|
+
D, [2019-03-11T14:36:01.345100 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
887
|
+
D, [2019-03-11T14:36:01.346862 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
888
|
+
D, [2019-03-11T14:36:01.348324 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
889
|
+
I, [2019-03-11T14:36:01.349659 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
|
890
|
+
F, [2019-03-11T14:36:01.359334 #69288] FATAL -- :
|
|
891
|
+
AirbrakeTestError (after_commit):
|
|
892
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
893
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
I, [2019-03-11T14:36:03.362134 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:36:03 +0200
|
|
897
|
+
I, [2019-03-11T14:36:03.363086 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
898
|
+
I, [2019-03-11T14:36:03.363143 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
899
|
+
D, [2019-03-11T14:36:03.363595 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
900
|
+
D, [2019-03-11T14:36:03.365264 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
901
|
+
D, [2019-03-11T14:36:03.366622 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
902
|
+
I, [2019-03-11T14:36:03.367861 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
903
|
+
F, [2019-03-11T14:36:03.378070 #69288] FATAL -- :
|
|
904
|
+
AirbrakeTestError (after_commit):
|
|
905
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
906
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
I, [2019-03-11T14:36:05.382639 #69288] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-03-11 14:36:05 +0200
|
|
910
|
+
I, [2019-03-11T14:36:05.383838 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
911
|
+
I, [2019-03-11T14:36:05.383944 #69288] INFO -- : Parameters: {"foo"=>"bar"}
|
|
912
|
+
D, [2019-03-11T14:36:05.384408 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
913
|
+
D, [2019-03-11T14:36:05.386345 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
914
|
+
D, [2019-03-11T14:36:05.387869 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
915
|
+
I, [2019-03-11T14:36:05.389315 #69288] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
|
|
916
|
+
F, [2019-03-11T14:36:05.399625 #69288] FATAL -- :
|
|
917
|
+
AirbrakeTestError (after_commit):
|
|
918
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
919
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
I, [2019-03-11T14:36:07.407073 #69288] INFO -- : Started GET "/delayed_job" for 127.0.0.1 at 2019-03-11 14:36:07 +0200
|
|
923
|
+
I, [2019-03-11T14:36:07.408097 #69288] INFO -- : Processing by DummyController#delayed_job as HTML
|
|
924
|
+
I, [2019-03-11T14:36:07.420697 #69288] INFO -- : Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.2ms)
|
|
925
|
+
F, [2019-03-11T14:36:07.446527 #69288] FATAL -- :
|
|
926
|
+
RSpec::Mocks::MockExpectationError (Airbrake received :notify with unexpected arguments
|
|
927
|
+
expected: (anything, hash_including("handler"=>"--- !ruby/struct:BangoJob\nbingo: bingo\nbongo: bongo\n"))
|
|
928
|
+
got: (#<Airbrake::Notice:0x00007fa343b1f880 @config=#<Airbrake::Config:0x00007fa3431e97e8 @proxy={}, @queue...ath=nil, @ip=nil, @uuid=nil>}, @truncator=#<Airbrake::Truncator:0x00007fa3439c3298 @max_size=10000>>)
|
|
929
|
+
Diff:[0m
|
|
930
|
+
[0m[34m@@ -1,3 +1,2 @@
|
|
931
|
+
[0m[31m-["anything",
|
|
932
|
+
[0m[31m- "hash_including(\"handler\"=>\"--- !ruby/struct:BangoJob\\nbingo: bingo\\nbongo: bongo\\n\")"]
|
|
933
|
+
[0m[32m+[#<Airbrake::Notice:0x00007fa343b1f880 @config=#<Airbrake::Config:0x00007fa3431e97e8 @proxy={}, @queue_size=100, @workers=5, @code_hunks=true, @logger=#<Logger:0x00007fa3431ea300 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fa343dcffa8 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fa343dcff58 @shift_period_suffix="%Y%m%d", @shift_size=1048576, @shift_age=0, @filename="/dev/null", @dev=#<File:/dev/null>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00007fa343dcfee0>>>, @project_id=113743, @project_key="fd04e13d806a90f96614ad8e529b2822", @host="https://api.airbrake.io", @ignore_environments=[], @timeout=nil, @blacklist_keys=[], @whitelist_keys=[], @root_directory="/Users/kyrylo/Code/airbrake/airbrake/gemfiles", @versions={}, @performance_stats=false, @performance_stats_flush_period=1, @app_version="1.2.3", @endpoint=#<URI::HTTPS https://api.airbrake.io/api/v3/projects/113743/notices>>, @payload={:errors=>[{:type=>"AirbrakeTestError", :message=>"delayed_job error", :backtrace=>[{:file=>"/Users/kyrylo/Code/airbrake/airbrake/spec/apps/rails/dummy_app.rb", :line=>86, :function=>"perform"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>81, :function=>"block in invoke_job"}, {:file=>"/Users/kyrylo/Code/airbrake/airbrake/lib/airbrake/delayed_job.rb", :line=>10, :function=>"block (2 levels) in <class:Airbrake>"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>79, :function=>"block (2 levels) in add"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>61, :function=>"block in initialize"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>79, :function=>"block in add"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>66, :function=>"execute"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>40, :function=>"run_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>78, :function=>"invoke_job"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>19, :function=>"block (2 levels) in enqueue_job"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>61, :function=>"block in initialize"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>66, :function=>"execute"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/lifecycle.rb", :line=>40, :function=>"run_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>17, :function=>"block in enqueue_job"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>16, :function=>"tap"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>16, :function=>"enqueue_job"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/delayed_job-4.1.5/lib/delayed/backend/base.rb", :line=>12, :function=>"enqueue"}, {:file=>"/Users/kyrylo/Code/airbrake/airbrake/spec/apps/rails/dummy_app.rb", :line=>142, :function=>"delayed_job"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/implicit_render.rb", :line=>4, :function=>"send_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/abstract_controller/base.rb", :line=>198, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/rendering.rb", :line=>10, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/abstract_controller/callbacks.rb", :line=>20, :function=>"block in process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>88, :function=>"__run_callbacks__"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>778, :function=>"_run_process_action_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>81, :function=>"run_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/abstract_controller/callbacks.rb", :line=>19, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/rescue.rb", :line=>29, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/instrumentation.rb", :line=>32, :function=>"block in process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/notifications.rb", :line=>164, :function=>"block in instrument"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/notifications/instrumenter.rb", :line=>20, :function=>"instrument"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/notifications.rb", :line=>164, :function=>"instrument"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/instrumentation.rb", :line=>30, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/params_wrapper.rb", :line=>250, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activerecord-4.2.11/lib/active_record/railties/controller_runtime.rb", :line=>18, :function=>"process_action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/abstract_controller/base.rb", :line=>137, :function=>"process"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/rendering.rb", :line=>30, :function=>"process"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal.rb", :line=>196, :function=>"dispatch"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal/rack_delegation.rb", :line=>13, :function=>"dispatch"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_controller/metal.rb", :line=>237, :function=>"block in action"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb", :line=>74, :function=>"dispatch"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb", :line=>43, :function=>"serve"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb", :line=>43, :function=>"block in serve"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb", :line=>30, :function=>"each"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/journey/router.rb", :line=>30, :function=>"serve"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/routing/route_set.rb", :line=>817, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/warden-1.2.7/lib/warden/manager.rb", :line=>36, :function=>"block in call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/warden-1.2.7/lib/warden/manager.rb", :line=>35, :function=>"catch"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/warden-1.2.7/lib/warden/manager.rb", :line=>35, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/etag.rb", :line=>24, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/conditionalget.rb", :line=>25, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/head.rb", :line=>13, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/params_parser.rb", :line=>27, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/flash.rb", :line=>260, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/session/abstract/id.rb", :line=>225, :function=>"context"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/session/abstract/id.rb", :line=>220, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/cookies.rb", :line=>560, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activerecord-4.2.11/lib/active_record/query_cache.rb", :line=>36, :function=>"call"}, {:file=>"/Users/kyrylo/Code/airbrake/airbrake/lib/airbrake/rack/middleware.rb", :line=>33, :function=>"call!"}, {:file=>"/Users/kyrylo/Code/airbrake/airbrake/lib/airbrake/rack/middleware.rb", :line=>21, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activerecord-4.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb", :line=>653, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/callbacks.rb", :line=>29, :function=>"block in call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>88, :function=>"__run_callbacks__"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>778, :function=>"_run_call_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/callbacks.rb", :line=>81, :function=>"run_callbacks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/callbacks.rb", :line=>27, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/reloader.rb", :line=>73, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/remote_ip.rb", :line=>78, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/debug_exceptions.rb", :line=>17, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/show_exceptions.rb", :line=>30, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/rack/logger.rb", :line=>38, :function=>"call_app"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/rack/logger.rb", :line=>22, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/request_id.rb", :line=>21, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/methodoverride.rb", :line=>22, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/runtime.rb", :line=>18, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/activesupport-4.2.11/lib/active_support/cache/strategy/local_cache_middleware.rb", :line=>28, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/lock.rb", :line=>17, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/actionpack-4.2.11/lib/action_dispatch/middleware/static.rb", :line=>120, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-1.6.11/lib/rack/sendfile.rb", :line=>113, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/engine.rb", :line=>518, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/application.rb", :line=>165, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-test-0.6.3/lib/rack/mock_session.rb", :line=>30, :function=>"request"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-test-0.6.3/lib/rack/test.rb", :line=>244, :function=>"process_request"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rack-test-0.6.3/lib/rack/test.rb", :line=>58, :function=>"get"}, {:file=>"/Users/kyrylo/Code/airbrake/airbrake/spec/integration/rails/rails_spec.rb", :line=>196, :function=>"block (3 levels) in <top (required)>"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>254, :function=>"instance_exec"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>254, :function=>"block in run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>500, :function=>"block in with_around_and_singleton_context_hooks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>457, :function=>"block in with_around_example_hooks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>464, :function=>"block in run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>604, :function=>"block in run_around_example_hooks_for"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>342, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-wait-0.0.9/lib/rspec/wait.rb", :line=>46, :function=>"block (2 levels) in <top (required)>"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>447, :function=>"instance_exec"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>447, :function=>"instance_exec"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>373, :function=>"execute_with"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>606, :function=>"block (2 levels) in run_around_example_hooks_for"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>342, :function=>"call"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>607, :function=>"run_around_example_hooks_for"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb", :line=>464, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>457, :function=>"with_around_example_hooks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>500, :function=>"with_around_and_singleton_context_hooks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example.rb", :line=>251, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>629, :function=>"block in run_examples"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>625, :function=>"map"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>625, :function=>"run_examples"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>591, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>592, :function=>"block in run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>592, :function=>"map"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb", :line=>592, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>116, :function=>"block (3 levels) in run_specs"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>116, :function=>"map"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>116, :function=>"block (2 levels) in run_specs"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb", :line=>1989, :function=>"with_suite_hooks"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>111, :function=>"block in run_specs"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb", :line=>74, :function=>"report"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>110, :function=>"run_specs"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>87, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>71, :function=>"run"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb", :line=>45, :function=>"invoke"}, {:file=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/exe/rspec", :line=>4, :function=>"<main>"}]}], :context=>{:version=>"1.2.3", :rootDirectory=>"/Users/kyrylo/Code/airbrake/airbrake/gemfiles", :hostname=>"Kyrylos-MacBook-Pro.local", :severity=>"error", :os=>"x86_64-darwin16", :language=>"ruby/2.4.2", :notifier=>{:name=>"airbrake-ruby", :version=>"4.2.0", :url=>"https://github.com/airbrake/airbrake-ruby"}}, :environment=>{:program_name=>"/Users/kyrylo/.gem/ruby/2.4.2/gems/rspec-core-3.8.0/exe/rspec"}, :session=>{}, :params=>{}}, @stash={:exception=>#<AirbrakeTestError: delayed_job error>, :rack_request=>#<ActionDispatch::Request:0x00007fa3439c31d0 @env={"rack.version"=>[1, 3], "rack.input"=>#<StringIO:0x00007fa3432aaa88>, "rack.errors"=>#<StringIO:0x00007fa3432aacb8>, "rack.multithread"=>false, "rack.multiprocess"=>true, "rack.run_once"=>false, "REQUEST_METHOD"=>"GET", "SERVER_NAME"=>"example.org", "SERVER_PORT"=>"80", "QUERY_STRING"=>"", "PATH_INFO"=>"/delayed_job", "rack.url_scheme"=>"http", "HTTPS"=>"off", "SCRIPT_NAME"=>"", "CONTENT_LENGTH"=>"0", "rack.test"=>true, "REMOTE_ADDR"=>"127.0.0.1", "HTTP_HOST"=>"example.org", "HTTP_COOKIE"=>"", "ORIGINAL_FULLPATH"=>"/delayed_job", "ORIGINAL_SCRIPT_NAME"=>"", "action_dispatch.routes"=>#<ActionDispatch::Routing::RouteSet:0x00007fa343d773a8>, "action_dispatch.parameter_filter"=>[], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>"ni6aeph6aeriBiphesh8omahv6cohpue5Quah5ceiMohtuvei8", "action_dispatch.secret_key_base"=>"62773890cad9d9d584b57320f8612f8f7378a90aadcabc6ee", "action_dispatch.show_exceptions"=>true, "action_dispatch.show_detailed_exceptions"=>false, "action_dispatch.logger"=>#<Logger:0x00007fa342b65bb0 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fa342b65b10 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fa342b65ac0 @shift_period_suffix="%Y%m%d", @shift_size=1048576, @shift_age=0, @filename="/Users/kyrylo/Code/airbrake/airbrake/spec/apps/rails/logs/42.log", @dev=#<File:/Users/kyrylo/Code/airbrake/airbrake/spec/apps/rails/logs/42.log>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00007fa342b65a20>>>, "action_dispatch.backtrace_cleaner"=>#<Rails::BacktraceCleaner:0x00007fa3442ec950 @filters=[#<Proc:0x00007fa3442ec810@/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/backtrace_cleaner.rb:14>, #<Proc:0x00007fa3442ec7e8@/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/backtrace_cleaner.rb:15>, #<Proc:0x00007fa3442ec7c0@/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/backtrace_cleaner.rb:16>, #<Proc:0x00007fa3442ec1a8@/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/backtrace_cleaner.rb:29>], @silencers=[#<Proc:0x00007fa3442ec518@/Users/kyrylo/.gem/ruby/2.4.2/gems/railties-4.2.11/lib/rails/backtrace_cleaner.rb:19>], @root="/Users/kyrylo/Code/airbrake/airbrake/">, "action_dispatch.key_generator"=>#<ActiveSupport::CachingKeyGenerator:0x00007fa3442ed878 @key_generator=#<ActiveSupport::KeyGenerator:0x00007fa3442ed670 @secret="62773890cad9d9d584b57320f8612f8f7378a90aadcabc6ee", @iterations=1000>, @cache_keys=#<ThreadSafe::Cache:0x00007fa3442edbc0 @backend={"encrypted cookie64"=>"\x1D\x0Ecc\x81\xCE\xD3\xBE\x16\b\xA4 \xBE\xB0\xAF\b\xCA\xAFtlV\xA7jQ\x06\xEFV\x88\xC3\xE6~\xA0+\xEC1\xE5M]N\x9B\xDB\x9C\xB84\x16\x8C\xC3\xB5m\x19\x82\x03\xB4\xCF\xEE \x81H\xB7P4l\xD15", "signed encrypted cookie64"=>"b\x8D\xD9M,1\xBFB\xEB\x83\xA8%\x18\xFCj\x82\xD6>N\x94-\xDB\xE5\xB1}Uj\xE5u\xFB\x916\x15\xD2\xEE\xD2\x1C\xEC`\xA7\xB1\xCC\x9D\x12\xC6\x9B\x7F\a4>\xE2\xC04N\xFD\x84\xEEV~\x11\xFB\x85\xEE\xE7"}, @default_proc=nil>>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "action_dispatch.cookies_serializer"=>nil, "action_dispatch.cookies_digest"=>nil, "ROUTES_70169597295060_SCRIPT_NAME"=>"", "action_dispatch.request_id"=>"0b466401-efc1-473f-9ff0-308e598d3723", "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::GetIp:0x00007fa343e7ca00 @env={...}, @check_ip=true, @proxies=[#<IPAddr: IPv4:127.0.0.1/255.255.255.255>, #<IPAddr: IPv6:0000:0000:0000:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>, #<IPAddr: IPv6:fc00:0000:0000:0000:0000:0000:0000:0000/fe00:0000:0000:0000:0000:0000:0000:0000>, #<IPAddr: IPv4:10.0.0.0/255.0.0.0>, #<IPAddr: IPv4:172.16.0.0/255.240.0.0>, #<IPAddr: IPv4:192.168.0.0/255.255.0.0>]>, "rack.session"=>#<ActionDispatch::Request::Session:0x7fa34424b5f0 not yet loaded>, "rack.session.options"=>#<ActionDispatch::Request::Session::Options:0x00007fa34424b528 @by=#<ActionDispatch::Session::CookieStore:0x00007fa342aad1f0 @app=#<ActionDispatch::Flash:0x00007fa342aad290 @app=#<ActionDispatch::ParamsParser:0x00007fa342aad8a8 @app=#<Rack::Head:0x00007fa342aad920 @app=#<Rack::ConditionalGet:0x00007fa342aada38 @app=#<Rack::ETag:0x00007fa342aada88 @app=#<Warden::Manager:0x00007fa342aade20 @config={:default_scope=>:default, :scope_defaults=>{}, :default_strategies=>{}, :intercept_401=>true}, @app=#<ActionDispatch::Routing::RouteSet:0x00007fa343d773a8>>, @cache_control="max-age=0, private, must-revalidate", @no_cache_control="no-cache">>>, @parsers={#<Mime::Type:0x00007fa343c6cda0 @synonyms=["text/x-json", "application/jsonrequest"], @symbol=:json, @string="application/json", @hash=3567607508417960823>=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}, @key="jiez4Mielu1AiHugog3shiiPhe3lai3faer", @cookie_only=true>, @env={...}, @delegate={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}>, "warden"=>Warden::Proxy:70169599826480 @config={:default_scope=>:default, :scope_defaults=>{}, :default_strategies=>{}, :intercept_401=>true}, "action_dispatch.request.path_parameters"=>{:controller=>"dummy", :action=>"delayed_job"}, "action_controller.instance"=>#<DummyController:0x00007fa344249250 @_action_has_layout=true, @_routes=nil, @_headers={"Content-Type"=>"text/html"}, @_status=200, @_request=#<ActionDispatch::Request:0x00007fa3442490c0 @env={...}, @filtered_parameters={"controller"=>"dummy", "action"=>"delayed_job"}, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method=nil, @request_method="GET", @remote_ip=nil, @original_fullpath=nil, @fullpath="/delayed_job", @ip=nil, @uuid=nil>, @_response=#<ActionDispatch::Response:0x00007fa344249020 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x00007fa344248ee0>, @stream=#<ActionDispatch::Response::Buffer:0x00007fa344248e18 @response=#<ActionDispatch::Response:0x00007fa344249020 ...>, @buf=[], @closed=false>, @header={"X-Frame-Options"=>"SAMEORIGIN", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff"}, @status=200, @sending_file=false, @blank=false, @cv=#<MonitorMixin::ConditionVariable:0x00007fa344248dc8 @monitor=#<ActionDispatch::Response:0x00007fa344249020 ...>, @cond=#<Thread::ConditionVariable:0x00007fa344248da0>>, @committed=false, @sending=false, @sent=false, @content_type=nil, @charset=nil, @cache_control={}, @etag=nil, @request=#<ActionDispatch::Request:0x00007fa3442490c0 @env={...}, @filtered_parameters={"controller"=>"dummy", "action"=>"delayed_job"}, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method=nil, @request_method="GET", @remote_ip=nil, @original_fullpath=nil, @fullpath="/delayed_job", @ip=nil, @uuid=nil>>, @_env={...}, @_lookup_context=#<ActionView::LookupContext:0x00007fa344248aa8 @details_key=nil, @details={:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}, @skip_default_locale=false, @cache=true, @prefixes=["dummy"], @rendered_format=nil, @view_paths=#<ActionView::PathSet:0x00007fa3442489e0 @paths=[#<ActionView::FixtureResolver:0x00007fa343f3cf58 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x00007fa343f3cf30 @data=#<ActionView::Resolver::Cache::SmallCache:0x00007fa343f3cf08 @backend={#<ActionView::LookupContext::DetailsKey:0x00007fa343317430 @hash=1142979117445739280>=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343315f18 @backend={"index"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343315e50 @backend={"dummy"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343315d60 @backend={false=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343315c70 @backend={[]=>[dummy/index.html.erb]}, @default_proc=nil>}, @default_proc=#<Proc:0x00007fa343288460@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:46 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288438@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:47 (lambda)>>, "application"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343314028 @backend={"layouts"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa34330fe60 @backend={false=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa34330fd20 @backend={[]=>[layouts/application.html.erb]}, @default_proc=nil>}, @default_proc=#<Proc:0x00007fa343288460@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:46 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288438@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:47 (lambda)>>, "resque"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343ed6fa0 @backend={"dummy"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343ed6d48 @backend={false=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343ed6988 @backend={[]=>[dummy/resque.html.erb]}, @default_proc=nil>}, @default_proc=#<Proc:0x00007fa343288460@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:46 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288438@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:47 (lambda)>>, "notify_airbrake_sync_helper"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa342dd6cf0 @backend={"dummy"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa342dd6c28 @backend={false=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa342dd6ac0 @backend={[]=>[dummy/notify_airbrake_sync_helper.html.erb]}, @default_proc=nil>}, @default_proc=#<Proc:0x00007fa343288460@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:46 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288438@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:47 (lambda)>>, "notify_airbrake_helper"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343c75928 @backend={"dummy"=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343c74ac8 @backend={false=>#<ActionView::Resolver::Cache::SmallCache:0x00007fa343c6f550 @backend={[]=>[dummy/notify_airbrake_helper.html.erb]}, @default_proc=nil>}, @default_proc=#<Proc:0x00007fa343288460@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:46 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288438@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:47 (lambda)>>}, @default_proc=#<Proc:0x00007fa343288410@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:48 (lambda)>>}, @default_proc=#<Proc:0x00007fa3432883e8@/Users/kyrylo/.gem/ruby/2.4.2/gems/actionview-4.2.11/lib/action_view/template/resolver.rb:49 (lambda)>>>, @hash={"layouts/application.html.erb"=>"<%= yield %>", "dummy/index.html.erb"=>"Hello from index", "dummy/notify_airbrake_helper.html.erb"=>"notify_airbrake_helper", "dummy/notify_airbrake_sync_helper.html.erb"=>"notify_airbrake_helper_sync", "dummy/active_record_after_commit.html.erb"=>"active_record_after_commit", "dummy/active_record_after_rollback.html.erb"=>"active_record_after_rollback", "dummy/active_job.html.erb"=>"active_job", "dummy/resque.html.erb"=>"resque", "dummy/delayed_job.html.erb"=>"delayed_job"}>]>>, @_action_name="delayed_job", @_response_body=nil>, "action_dispatch.request.content_type"=>nil, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"controller"=>"dummy", "action"=>"delayed_job"}, "action_dispatch.request.formats"=>[#<Mime::Type:0x00007fa343c7cc28 @synonyms=["application/xhtml+xml"], @symbol=:html, @string="text/html", @hash=-203349168126899506>]}, @filtered_parameters=nil, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method=nil, @request_method=nil, @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip=nil, @uuid=nil>}, @truncator=#<Airbrake::Truncator:0x00007fa3439c3298 @max_size=10000>>]
|
|
934
|
+
[0m):
|
|
935
|
+
lib/airbrake/rack/middleware.rb:65:in `notify_airbrake'
|
|
936
|
+
lib/airbrake/rack/middleware.rb:35:in `rescue in call!'
|
|
937
|
+
lib/airbrake/rack/middleware.rb:40:in `call!'
|
|
938
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
I, [2019-03-11T14:36:07.448707 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:36:07 +0200
|
|
942
|
+
I, [2019-03-11T14:36:07.449539 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
943
|
+
D, [2019-03-11T14:36:07.449958 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
944
|
+
D, [2019-03-11T14:36:07.451264 #69288] DEBUG -- : [1m[35mSQL (0.1ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
945
|
+
D, [2019-03-11T14:36:07.452298 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
946
|
+
I, [2019-03-11T14:36:07.453369 #69288] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
|
947
|
+
F, [2019-03-11T14:36:07.463563 #69288] FATAL -- :
|
|
948
|
+
AirbrakeTestError (after_commit):
|
|
949
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
950
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
I, [2019-03-11T14:36:09.470614 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:36:09 +0200
|
|
954
|
+
I, [2019-03-11T14:36:09.471321 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
955
|
+
D, [2019-03-11T14:36:09.471750 #69288] DEBUG -- : [1m[35m (0.1ms)[0m begin transaction
|
|
956
|
+
D, [2019-03-11T14:36:09.473179 #69288] DEBUG -- : [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
957
|
+
D, [2019-03-11T14:36:09.474333 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
958
|
+
I, [2019-03-11T14:36:09.475365 #69288] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
|
|
959
|
+
F, [2019-03-11T14:36:09.476658 #69288] FATAL -- :
|
|
960
|
+
AirbrakeTestError (after_commit):
|
|
961
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
962
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
I, [2019-03-11T14:36:09.477951 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:36:09 +0200
|
|
966
|
+
I, [2019-03-11T14:36:09.478483 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
967
|
+
D, [2019-03-11T14:36:09.478833 #69288] DEBUG -- : [1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
968
|
+
D, [2019-03-11T14:36:09.479262 #69288] DEBUG -- : [1m[35mSQL (0.0ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
|
|
969
|
+
D, [2019-03-11T14:36:09.479507 #69288] DEBUG -- : [1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
|
970
|
+
I, [2019-03-11T14:36:09.479831 #69288] INFO -- : Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
|
|
971
|
+
F, [2019-03-11T14:36:09.481170 #69288] FATAL -- :
|
|
972
|
+
AirbrakeTestError (after_commit):
|
|
973
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
974
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
I, [2019-03-11T14:36:09.482206 #69288] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-03-11 14:36:09 +0200
|
|
978
|
+
I, [2019-03-11T14:36:09.482807 #69288] INFO -- : Processing by DummyController#crash as HTML
|
|
979
|
+
D, [2019-03-11T14:36:09.483052 #69288] DEBUG -- : [1m[35m (0.0ms)[0m begin transaction
|
|
980
|
+
D, [2019-03-11T14:36:09.484192 #69288] DEBUG -- : [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "book"]]
|
|
981
|
+
D, [2019-03-11T14:36:09.485341 #69288] DEBUG -- : [1m[35m (0.0ms)[0m commit transaction
|
|
982
|
+
I, [2019-03-11T14:36:09.486396 #69288] INFO -- : Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
|
|
983
|
+
F, [2019-03-11T14:36:09.491718 #69288] FATAL -- :
|
|
984
|
+
AirbrakeTestError (after_commit):
|
|
985
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
986
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
D, [2019-03-11T14:36:16.639923 #69305] DEBUG -- : [1m[36m (0.5ms)[0m [1mCREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) [0m
|
|
990
|
+
D, [2019-03-11T14:36:16.642661 #69305] DEBUG -- : [1m[35m (0.1ms)[0m CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)
|
|
991
|
+
D, [2019-03-11T14:36:16.642890 #69305] DEBUG -- : [1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
|
992
|
+
D, [2019-03-11T14:36:16.643211 #69305] DEBUG -- : [1m[35m (0.1ms)[0m CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
|
|
993
|
+
I, [2019-03-11T14:36:16.684743 #69305] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-03-11 14:36:16 +0200
|
|
994
|
+
I, [2019-03-11T14:36:16.686956 #69305] INFO -- : Processing by DummyController#active_job as HTML
|
|
995
|
+
I, [2019-03-11T14:36:16.691825 #69305] INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
|
|
996
|
+
F, [2019-03-11T14:36:16.694046 #69305] FATAL -- :
|
|
997
|
+
AirbrakeTestError (active_job error):
|
|
998
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
999
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
I, [2019-03-11T14:36:18.701599 #69305] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-03-11 14:36:18 +0200
|
|
1003
|
+
I, [2019-03-11T14:36:18.702868 #69305] INFO -- : Processing by DummyController#active_job as HTML
|
|
1004
|
+
I, [2019-03-11T14:36:18.706651 #69305] INFO -- : Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
|
|
1005
|
+
F, [2019-03-11T14:36:18.709165 #69305] FATAL -- :
|
|
1006
|
+
AirbrakeTestError (active_job error):
|
|
1007
|
+
lib/airbrake/rack/middleware.rb:33:in `call!'
|
|
1008
|
+
lib/airbrake/rack/middleware.rb:21:in `call'
|
|
1009
|
+
|
|
1010
|
+
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
1
|
require 'integration/shared_examples/rack_examples'
|
|
3
2
|
|
|
4
3
|
RSpec.describe "Rails integration specs" do
|
|
@@ -290,4 +289,24 @@ RSpec.describe "Rails integration specs" do
|
|
|
290
289
|
end
|
|
291
290
|
end
|
|
292
291
|
end
|
|
292
|
+
|
|
293
|
+
describe "performance breakdown hook" do
|
|
294
|
+
before { allow(Airbrake).to receive(:notify).and_return(nil) }
|
|
295
|
+
|
|
296
|
+
it "sends performance breakdown info to Airbrake" do
|
|
297
|
+
expect(Airbrake).to receive(:notify_performance_breakdown).with(
|
|
298
|
+
hash_including(
|
|
299
|
+
route: '/crash(.:format)',
|
|
300
|
+
method: 'GET',
|
|
301
|
+
response_type: :html,
|
|
302
|
+
groups: {
|
|
303
|
+
db: anything,
|
|
304
|
+
view: anything
|
|
305
|
+
}
|
|
306
|
+
)
|
|
307
|
+
).at_least(:once)
|
|
308
|
+
|
|
309
|
+
get '/crash'
|
|
310
|
+
end
|
|
311
|
+
end
|
|
293
312
|
end
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
require 'sinatra'
|
|
2
|
-
require 'spec_helper'
|
|
3
2
|
|
|
4
|
-
require 'apps/sinatra/
|
|
3
|
+
require 'apps/sinatra/sinatra_test_app'
|
|
5
4
|
require 'integration/shared_examples/rack_examples'
|
|
6
5
|
|
|
7
6
|
RSpec.describe "Sinatra integration specs" do
|
|
8
|
-
let(:app) {
|
|
7
|
+
let(:app) { SinatraTestApp }
|
|
9
8
|
|
|
10
9
|
include_examples 'rack examples'
|
|
11
10
|
|
data/spec/unit/logger_spec.rb
CHANGED
data/spec/unit/rack/user_spec.rb
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
require 'airbrake/rails/action_cable/notify_callback'
|
|
2
|
+
|
|
3
|
+
RSpec.describe Airbrake::Rails::ActionCable::NotifyCallback do
|
|
4
|
+
describe ".call" do
|
|
5
|
+
context "when block raises exception" do
|
|
6
|
+
let(:channel) { double }
|
|
7
|
+
let(:block) { proc { raise AirbrakeTestError } }
|
|
8
|
+
|
|
9
|
+
before do
|
|
10
|
+
expect(channel).to receive(:channel_name).and_return('web_notifications')
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it "notifies Airbrake" do
|
|
14
|
+
expect(Airbrake).to(
|
|
15
|
+
receive(:notify).with(an_instance_of(Airbrake::Notice))
|
|
16
|
+
) do |notice|
|
|
17
|
+
expect(notice[:context][:component]).to eq('action_cable')
|
|
18
|
+
expect(notice[:context][:action]).to eq('web_notifications')
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
expect { described_class.call(channel, block) }
|
|
22
|
+
.to raise_error(AirbrakeTestError)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
data/spec/unit/shoryuken_spec.rb
CHANGED
data/spec/unit/sidekiq_spec.rb
CHANGED
data/spec/unit/sneakers_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: airbrake
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airbrake Technologies, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: airbrake-ruby
|
|
@@ -274,8 +274,11 @@ files:
|
|
|
274
274
|
- lib/airbrake/rack/user.rb
|
|
275
275
|
- lib/airbrake/rack/user_filter.rb
|
|
276
276
|
- lib/airbrake/rails.rb
|
|
277
|
+
- lib/airbrake/rails/action_cable.rb
|
|
278
|
+
- lib/airbrake/rails/action_cable/notify_callback.rb
|
|
277
279
|
- lib/airbrake/rails/action_controller.rb
|
|
278
280
|
- lib/airbrake/rails/action_controller_notify_subscriber.rb
|
|
281
|
+
- lib/airbrake/rails/action_controller_performance_breakdown_subscriber.rb
|
|
279
282
|
- lib/airbrake/rails/action_controller_route_subscriber.rb
|
|
280
283
|
- lib/airbrake/rails/active_job.rb
|
|
281
284
|
- lib/airbrake/rails/active_record.rb
|
|
@@ -296,7 +299,7 @@ files:
|
|
|
296
299
|
- spec/apps/rails/logs/32.log
|
|
297
300
|
- spec/apps/rails/logs/42.log
|
|
298
301
|
- spec/apps/rails/logs/52.log
|
|
299
|
-
- spec/apps/sinatra/
|
|
302
|
+
- spec/apps/sinatra/sinatra_test_app.rb
|
|
300
303
|
- spec/integration/rack/rack_spec.rb
|
|
301
304
|
- spec/integration/rails/rails_spec.rb
|
|
302
305
|
- spec/integration/rails/rake_spec.rb
|
|
@@ -315,6 +318,7 @@ files:
|
|
|
315
318
|
- spec/unit/rack/session_filter_spec.rb
|
|
316
319
|
- spec/unit/rack/user_filter_spec.rb
|
|
317
320
|
- spec/unit/rack/user_spec.rb
|
|
321
|
+
- spec/unit/rails/action_cable/notify_callback_spec.rb
|
|
318
322
|
- spec/unit/rake/tasks_spec.rb
|
|
319
323
|
- spec/unit/shoryuken_spec.rb
|
|
320
324
|
- spec/unit/sidekiq/retryable_jobs_filter_spec.rb
|
|
@@ -363,13 +367,14 @@ test_files:
|
|
|
363
367
|
- spec/unit/rack/user_filter_spec.rb
|
|
364
368
|
- spec/unit/rack/user_spec.rb
|
|
365
369
|
- spec/unit/rack/route_filter_spec.rb
|
|
370
|
+
- spec/unit/rails/action_cable/notify_callback_spec.rb
|
|
366
371
|
- spec/integration/sinatra/sinatra_spec.rb
|
|
367
372
|
- spec/integration/rack/rack_spec.rb
|
|
368
373
|
- spec/integration/shared_examples/rack_examples.rb
|
|
369
374
|
- spec/integration/rails/rake_spec.rb
|
|
370
375
|
- spec/integration/rails/rails_spec.rb
|
|
371
376
|
- spec/support/matchers/a_notice_with.rb
|
|
372
|
-
- spec/apps/sinatra/
|
|
377
|
+
- spec/apps/sinatra/sinatra_test_app.rb
|
|
373
378
|
- spec/apps/rack/dummy_app.rb
|
|
374
379
|
- spec/apps/rails/dummy_task.rake
|
|
375
380
|
- spec/apps/rails/dummy_app.rb
|