airbrake 8.0.1 → 8.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1417,3 +1417,337 @@ AirbrakeTestError (after_commit):
1417
1417
  lib/airbrake/rack/middleware.rb:54:in `call'
1418
1418
 
1419
1419
 
1420
+ D, [2019-02-12T12:15:52.917796 #63362] DEBUG -- :  (0.5ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1421
+ D, [2019-02-12T12:15:52.922082 #63362] DEBUG -- :  (0.1ms) 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)
1422
+ D, [2019-02-12T12:15:52.922456 #63362] DEBUG -- :  (0.1ms) select sqlite_version(*)
1423
+ D, [2019-02-12T12:15:52.923116 #63362] DEBUG -- :  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1424
+ I, [2019-02-12T12:15:52.960801 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:15:52 +0200
1425
+ I, [2019-02-12T12:15:52.963569 #63362] INFO -- : Processing by DummyController#crash as HTML
1426
+ I, [2019-02-12T12:15:52.964037 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1427
+ F, [2019-02-12T12:15:52.980815 #63362] FATAL -- :
1428
+ AirbrakeTestError (AirbrakeTestError):
1429
+ lib/airbrake/rack/middleware.rb:82:in `call'
1430
+
1431
+
1432
+ I, [2019-02-12T12:15:52.987843 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:52 +0200
1433
+ I, [2019-02-12T12:15:52.988638 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1434
+ I, [2019-02-12T12:15:52.988691 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1435
+ I, [2019-02-12T12:15:53.004976 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.1ms)
1436
+ I, [2019-02-12T12:15:53.005287 #63362] INFO -- : Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 0.0ms)
1437
+ I, [2019-02-12T12:15:53.007891 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1438
+ I, [2019-02-12T12:15:53.008553 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1439
+ I, [2019-02-12T12:15:53.008597 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1440
+ I, [2019-02-12T12:15:53.018937 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1441
+ I, [2019-02-12T12:15:53.019268 #63362] INFO -- : Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1442
+ I, [2019-02-12T12:15:53.021721 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1443
+ I, [2019-02-12T12:15:53.022642 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1444
+ I, [2019-02-12T12:15:53.022692 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1445
+ I, [2019-02-12T12:15:53.034913 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1446
+ I, [2019-02-12T12:15:53.035302 #63362] INFO -- : Completed 200 OK in 12ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1447
+ I, [2019-02-12T12:15:53.037460 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1448
+ I, [2019-02-12T12:15:53.038178 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1449
+ I, [2019-02-12T12:15:53.038229 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1450
+ I, [2019-02-12T12:15:53.047786 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1451
+ I, [2019-02-12T12:15:53.048142 #63362] INFO -- : Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 0.0ms)
1452
+ I, [2019-02-12T12:15:53.050589 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1453
+ I, [2019-02-12T12:15:53.051266 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1454
+ I, [2019-02-12T12:15:53.051305 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1455
+ I, [2019-02-12T12:15:53.061090 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1456
+ I, [2019-02-12T12:15:53.061384 #63362] INFO -- : Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1457
+ I, [2019-02-12T12:15:53.063529 #63362] INFO -- : Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1458
+ I, [2019-02-12T12:15:53.064141 #63362] INFO -- : Processing by DummyController#notify_airbrake_sync_helper as HTML
1459
+ I, [2019-02-12T12:15:53.064185 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1460
+ I, [2019-02-12T12:15:53.074063 #63362] INFO -- : Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1461
+ I, [2019-02-12T12:15:53.074342 #63362] INFO -- : Completed 200 OK in 10ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1462
+ I, [2019-02-12T12:15:53.078046 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1463
+ I, [2019-02-12T12:15:53.078918 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1464
+ I, [2019-02-12T12:15:53.078964 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1465
+ I, [2019-02-12T12:15:53.084666 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
1466
+ I, [2019-02-12T12:15:53.089575 #63362] INFO -- : Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 0.0ms)
1467
+ I, [2019-02-12T12:15:53.091679 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1468
+ I, [2019-02-12T12:15:53.092286 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1469
+ I, [2019-02-12T12:15:53.092327 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1470
+ I, [2019-02-12T12:15:53.097392 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
1471
+ I, [2019-02-12T12:15:53.102482 #63362] INFO -- : Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.0ms)
1472
+ I, [2019-02-12T12:15:53.104822 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1473
+ I, [2019-02-12T12:15:53.105586 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1474
+ I, [2019-02-12T12:15:53.105640 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1475
+ I, [2019-02-12T12:15:53.111029 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
1476
+ I, [2019-02-12T12:15:53.116445 #63362] INFO -- : Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 0.0ms)
1477
+ I, [2019-02-12T12:15:53.118823 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1478
+ I, [2019-02-12T12:15:53.119589 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1479
+ I, [2019-02-12T12:15:53.119637 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1480
+ I, [2019-02-12T12:15:53.125199 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
1481
+ I, [2019-02-12T12:15:53.131569 #63362] INFO -- : Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 0.0ms)
1482
+ I, [2019-02-12T12:15:53.133897 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1483
+ I, [2019-02-12T12:15:53.134652 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1484
+ I, [2019-02-12T12:15:53.134699 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1485
+ I, [2019-02-12T12:15:53.144312 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.3ms)
1486
+ I, [2019-02-12T12:15:53.144615 #63362] INFO -- : Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.0ms)
1487
+ I, [2019-02-12T12:15:53.147126 #63362] INFO -- : Started GET "/notify_airbrake_helper?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1488
+ I, [2019-02-12T12:15:53.147930 #63362] INFO -- : Processing by DummyController#notify_airbrake_helper as HTML
1489
+ I, [2019-02-12T12:15:53.147980 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1490
+ I, [2019-02-12T12:15:53.152982 #63362] INFO -- : Rendered dummy/notify_airbrake_helper.html.erb within layouts/application (0.2ms)
1491
+ I, [2019-02-12T12:15:53.157681 #63362] INFO -- : Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.0ms)
1492
+ I, [2019-02-12T12:15:53.159843 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1493
+ I, [2019-02-12T12:15:53.160420 #63362] INFO -- : Processing by DummyController#crash as HTML
1494
+ I, [2019-02-12T12:15:53.160463 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1495
+ I, [2019-02-12T12:15:53.160752 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1496
+ F, [2019-02-12T12:15:53.166062 #63362] FATAL -- :
1497
+ AirbrakeTestError (AirbrakeTestError):
1498
+ lib/airbrake/rack/middleware.rb:82:in `call'
1499
+
1500
+
1501
+ I, [2019-02-12T12:15:53.174173 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1502
+ I, [2019-02-12T12:15:53.174918 #63362] INFO -- : Processing by DummyController#crash as HTML
1503
+ I, [2019-02-12T12:15:53.174961 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1504
+ I, [2019-02-12T12:15:53.175252 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1505
+ F, [2019-02-12T12:15:53.180641 #63362] FATAL -- :
1506
+ AirbrakeTestError (AirbrakeTestError):
1507
+ lib/airbrake/rack/middleware.rb:82:in `call'
1508
+
1509
+
1510
+ I, [2019-02-12T12:15:53.187047 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1511
+ I, [2019-02-12T12:15:53.187723 #63362] INFO -- : Processing by DummyController#crash as HTML
1512
+ I, [2019-02-12T12:15:53.187766 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1513
+ I, [2019-02-12T12:15:53.188047 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1514
+ F, [2019-02-12T12:15:53.192925 #63362] FATAL -- :
1515
+ AirbrakeTestError (AirbrakeTestError):
1516
+ lib/airbrake/rack/middleware.rb:82:in `call'
1517
+
1518
+
1519
+ I, [2019-02-12T12:15:53.307855 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1520
+ I, [2019-02-12T12:15:53.309010 #63362] INFO -- : Processing by DummyController#crash as HTML
1521
+ I, [2019-02-12T12:15:53.309073 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1522
+ I, [2019-02-12T12:15:53.309467 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1523
+ F, [2019-02-12T12:15:53.321727 #63362] FATAL -- :
1524
+ AirbrakeTestError (AirbrakeTestError):
1525
+ lib/airbrake/rack/middleware.rb:82:in `call'
1526
+
1527
+
1528
+ I, [2019-02-12T12:15:53.323557 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1529
+ I, [2019-02-12T12:15:53.324359 #63362] INFO -- : Processing by DummyController#crash as HTML
1530
+ I, [2019-02-12T12:15:53.324408 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1531
+ I, [2019-02-12T12:15:53.324725 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1532
+ F, [2019-02-12T12:15:53.330000 #63362] FATAL -- :
1533
+ AirbrakeTestError (AirbrakeTestError):
1534
+ lib/airbrake/rack/middleware.rb:82:in `call'
1535
+
1536
+
1537
+ I, [2019-02-12T12:15:53.336262 #63362] INFO -- : Started GET "/crash?foo=bar" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1538
+ I, [2019-02-12T12:15:53.336985 #63362] INFO -- : Processing by DummyController#crash as HTML
1539
+ I, [2019-02-12T12:15:53.337027 #63362] INFO -- : Parameters: {"foo"=>"bar"}
1540
+ I, [2019-02-12T12:15:53.337313 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1541
+ F, [2019-02-12T12:15:53.342225 #63362] FATAL -- :
1542
+ AirbrakeTestError (AirbrakeTestError):
1543
+ lib/airbrake/rack/middleware.rb:82:in `call'
1544
+
1545
+
1546
+ I, [2019-02-12T12:15:53.348812 #63362] INFO -- : Started GET "/resque" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1547
+ I, [2019-02-12T12:15:53.349506 #63362] INFO -- : Processing by DummyController#resque as HTML
1548
+ I, [2019-02-12T12:15:53.360824 #63362] INFO -- : Rendered dummy/resque.html.erb within layouts/application (0.2ms)
1549
+ I, [2019-02-12T12:15:53.361093 #63362] INFO -- : Completed 200 OK in 11ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1550
+ I, [2019-02-12T12:15:53.363341 #63362] INFO -- : Started GET "/resque" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1551
+ I, [2019-02-12T12:15:53.363886 #63362] INFO -- : Processing by DummyController#resque as HTML
1552
+ I, [2019-02-12T12:15:53.365391 #63362] INFO -- : Rendered dummy/resque.html.erb within layouts/application (0.2ms)
1553
+ I, [2019-02-12T12:15:53.365659 #63362] INFO -- : Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1554
+ I, [2019-02-12T12:15:53.367472 #63362] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-02-12 12:15:53 +0200
1555
+ I, [2019-02-12T12:15:53.368044 #63362] INFO -- : Processing by DummyController#active_job as HTML
1556
+ I, [2019-02-12T12:15:53.381584 #63362] INFO -- : Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.0ms)
1557
+ F, [2019-02-12T12:15:53.393756 #63362] FATAL -- :
1558
+ AirbrakeTestError (active_job error):
1559
+ lib/airbrake/rack/middleware.rb:82:in `call'
1560
+
1561
+
1562
+ I, [2019-02-12T12:15:55.409387 #63362] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-02-12 12:15:55 +0200
1563
+ I, [2019-02-12T12:15:55.410264 #63362] INFO -- : Processing by DummyController#active_job as HTML
1564
+ I, [2019-02-12T12:15:55.418310 #63362] INFO -- : Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
1565
+ F, [2019-02-12T12:15:55.430501 #63362] FATAL -- :
1566
+ AirbrakeTestError (active_job error):
1567
+ lib/airbrake/rack/middleware.rb:82:in `call'
1568
+
1569
+
1570
+ I, [2019-02-12T12:15:57.435320 #63362] INFO -- : Started GET "/active_job" for 127.0.0.1 at 2019-02-12 12:15:57 +0200
1571
+ I, [2019-02-12T12:15:57.436151 #63362] INFO -- : Processing by DummyController#active_job as HTML
1572
+ I, [2019-02-12T12:15:57.437091 #63362] INFO -- : Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
1573
+ F, [2019-02-12T12:15:57.438817 #63362] FATAL -- :
1574
+ AirbrakeTestError (active_job error):
1575
+ lib/airbrake/rack/middleware.rb:82:in `call'
1576
+
1577
+
1578
+ I, [2019-02-12T12:15:59.446829 #63362] INFO -- : Started GET "/active_record_after_commit" for 127.0.0.1 at 2019-02-12 12:15:59 +0200
1579
+ I, [2019-02-12T12:15:59.447959 #63362] INFO -- : Processing by DummyController#active_record_after_commit as HTML
1580
+ D, [2019-02-12T12:15:59.457388 #63362] DEBUG -- :  (0.1ms) begin transaction
1581
+ D, [2019-02-12T12:15:59.461322 #63362] DEBUG -- : SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "Bingo"]]
1582
+ D, [2019-02-12T12:15:59.461817 #63362] DEBUG -- :  (0.0ms) commit transaction
1583
+ I, [2019-02-12T12:15:59.462363 #63362] INFO -- : Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.6ms)
1584
+ F, [2019-02-12T12:15:59.468794 #63362] FATAL -- :
1585
+ AirbrakeTestError (after_commit):
1586
+ lib/airbrake/rack/middleware.rb:82:in `call'
1587
+
1588
+
1589
+ I, [2019-02-12T12:15:59.474835 #63362] INFO -- : Started GET "/active_record_after_rollback" for 127.0.0.1 at 2019-02-12 12:15:59 +0200
1590
+ I, [2019-02-12T12:15:59.475524 #63362] INFO -- : Processing by DummyController#active_record_after_rollback as HTML
1591
+ D, [2019-02-12T12:15:59.475753 #63362] DEBUG -- :  (0.0ms) begin transaction
1592
+ D, [2019-02-12T12:15:59.476435 #63362] DEBUG -- : SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "Bango"]]
1593
+ D, [2019-02-12T12:15:59.476729 #63362] DEBUG -- :  (0.0ms) rollback transaction
1594
+ I, [2019-02-12T12:15:59.477122 #63362] INFO -- : Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
1595
+ F, [2019-02-12T12:15:59.485827 #63362] FATAL -- :
1596
+ AirbrakeTestError (after_rollback):
1597
+ lib/airbrake/rack/middleware.rb:82:in `call'
1598
+
1599
+
1600
+ I, [2019-02-12T12:15:59.499119 #63362] INFO -- : Started GET "/" for 127.0.0.1 at 2019-02-12 12:15:59 +0200
1601
+ I, [2019-02-12T12:15:59.499797 #63362] INFO -- : Processing by DummyController#index as HTML
1602
+ I, [2019-02-12T12:15:59.500549 #63362] INFO -- : Rendered dummy/index.html.erb within layouts/application (0.2ms)
1603
+ I, [2019-02-12T12:15:59.500787 #63362] INFO -- : Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1604
+ I, [2019-02-12T12:15:59.502163 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:15:59 +0200
1605
+ I, [2019-02-12T12:15:59.502540 #63362] INFO -- : Processing by DummyController#crash as HTML
1606
+ I, [2019-02-12T12:15:59.502833 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1607
+ F, [2019-02-12T12:15:59.508270 #63362] FATAL -- :
1608
+ AirbrakeTestError (AirbrakeTestError):
1609
+ lib/airbrake/rack/middleware.rb:82:in `call'
1610
+
1611
+
1612
+ I, [2019-02-12T12:15:59.522849 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:15:59 +0200
1613
+ I, [2019-02-12T12:15:59.524061 #63362] INFO -- : Processing by DummyController#crash as HTML
1614
+ I, [2019-02-12T12:15:59.524395 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1615
+ F, [2019-02-12T12:15:59.535185 #63362] FATAL -- :
1616
+ AirbrakeTestError (AirbrakeTestError):
1617
+ lib/airbrake/rack/middleware.rb:82:in `call'
1618
+
1619
+
1620
+ I, [2019-02-12T12:16:01.553791 #63362] INFO -- : Started HEAD "/crash" for 127.0.0.1 at 2019-02-12 12:16:01 +0200
1621
+ I, [2019-02-12T12:16:01.558589 #63362] INFO -- : Processing by DummyController#crash as HTML
1622
+ I, [2019-02-12T12:16:01.559186 #63362] INFO -- : Completed 0 in 0ms (ActiveRecord: 0.0ms)
1623
+ F, [2019-02-12T12:16:01.564710 #63362] FATAL -- :
1624
+ AirbrakeTestError (AirbrakeTestError):
1625
+ lib/airbrake/rack/middleware.rb:82:in `call'
1626
+
1627
+
1628
+ I, [2019-02-12T12:16:03.570654 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1629
+ I, [2019-02-12T12:16:03.571542 #63362] INFO -- : Processing by DummyController#crash as HTML
1630
+ I, [2019-02-12T12:16:03.571988 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1631
+ F, [2019-02-12T12:16:03.578044 #63362] FATAL -- :
1632
+ AirbrakeTestError (AirbrakeTestError):
1633
+ lib/airbrake/rack/middleware.rb:82:in `call'
1634
+
1635
+
1636
+ I, [2019-02-12T12:16:03.586133 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1637
+ I, [2019-02-12T12:16:03.586950 #63362] INFO -- : Processing by DummyController#crash as HTML
1638
+ I, [2019-02-12T12:16:03.587295 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1639
+ F, [2019-02-12T12:16:03.594118 #63362] FATAL -- :
1640
+ AirbrakeTestError (AirbrakeTestError):
1641
+ lib/airbrake/rack/middleware.rb:82:in `call'
1642
+
1643
+
1644
+ I, [2019-02-12T12:16:03.603880 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1645
+ I, [2019-02-12T12:16:03.604511 #63362] INFO -- : Processing by DummyController#crash as HTML
1646
+ I, [2019-02-12T12:16:03.604982 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1647
+ F, [2019-02-12T12:16:03.610862 #63362] FATAL -- :
1648
+ AirbrakeTestError (AirbrakeTestError):
1649
+ lib/airbrake/rack/middleware.rb:82:in `call'
1650
+
1651
+
1652
+ I, [2019-02-12T12:16:03.617091 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1653
+ I, [2019-02-12T12:16:03.617784 #63362] INFO -- : Processing by DummyController#crash as HTML
1654
+ I, [2019-02-12T12:16:03.618156 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1655
+ F, [2019-02-12T12:16:03.624034 #63362] FATAL -- :
1656
+ AirbrakeTestError (AirbrakeTestError):
1657
+ lib/airbrake/rack/middleware.rb:82:in `call'
1658
+
1659
+
1660
+ I, [2019-02-12T12:16:03.629754 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1661
+ I, [2019-02-12T12:16:03.630204 #63362] INFO -- : Processing by DummyController#crash as HTML
1662
+ I, [2019-02-12T12:16:03.630491 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1663
+ F, [2019-02-12T12:16:03.635549 #63362] FATAL -- :
1664
+ AirbrakeTestError (AirbrakeTestError):
1665
+ lib/airbrake/rack/middleware.rb:82:in `call'
1666
+
1667
+
1668
+ I, [2019-02-12T12:16:03.643677 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1669
+ I, [2019-02-12T12:16:03.644281 #63362] INFO -- : Processing by DummyController#crash as HTML
1670
+ I, [2019-02-12T12:16:03.644622 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1671
+ F, [2019-02-12T12:16:03.649634 #63362] FATAL -- :
1672
+ AirbrakeTestError (AirbrakeTestError):
1673
+ lib/airbrake/rack/middleware.rb:82:in `call'
1674
+
1675
+
1676
+ I, [2019-02-12T12:16:03.754409 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1677
+ I, [2019-02-12T12:16:03.755421 #63362] INFO -- : Processing by DummyController#crash as HTML
1678
+ I, [2019-02-12T12:16:03.755873 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1679
+ F, [2019-02-12T12:16:03.766982 #63362] FATAL -- :
1680
+ AirbrakeTestError (AirbrakeTestError):
1681
+ lib/airbrake/rack/middleware.rb:82:in `call'
1682
+
1683
+
1684
+ I, [2019-02-12T12:16:03.768763 #63362] INFO -- : Started GET "/crash" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1685
+ I, [2019-02-12T12:16:03.769348 #63362] INFO -- : Processing by DummyController#crash as HTML
1686
+ I, [2019-02-12T12:16:03.769650 #63362] INFO -- : Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1687
+ F, [2019-02-12T12:16:03.775101 #63362] FATAL -- :
1688
+ AirbrakeTestError (AirbrakeTestError):
1689
+ lib/airbrake/rack/middleware.rb:82:in `call'
1690
+
1691
+
1692
+ I, [2019-02-12T12:16:03.783046 #63362] INFO -- : Started GET "/delayed_job" for 127.0.0.1 at 2019-02-12 12:16:03 +0200
1693
+ I, [2019-02-12T12:16:03.783703 #63362] INFO -- : Processing by DummyController#delayed_job as HTML
1694
+ I, [2019-02-12T12:16:03.794357 #63362] INFO -- : Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.1ms)
1695
+ F, [2019-02-12T12:16:03.803721 #63362] FATAL -- :
1696
+ AirbrakeTestError (delayed_job error):
1697
+ lib/airbrake/delayed_job.rb:10:in `block (2 levels) in <class:Airbrake>'
1698
+ lib/airbrake/rack/middleware.rb:82:in `call'
1699
+
1700
+
1701
+ I, [2019-02-12T12:16:07.817413 #63362] INFO -- : Started GET "/delayed_job" for 127.0.0.1 at 2019-02-12 12:16:07 +0200
1702
+ I, [2019-02-12T12:16:07.818486 #63362] INFO -- : Processing by DummyController#delayed_job as HTML
1703
+ I, [2019-02-12T12:16:07.819754 #63362] INFO -- : Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
1704
+ F, [2019-02-12T12:16:07.821420 #63362] FATAL -- :
1705
+ AirbrakeTestError (delayed_job error):
1706
+ lib/airbrake/delayed_job.rb:10:in `block (2 levels) in <class:Airbrake>'
1707
+ lib/airbrake/rack/middleware.rb:82:in `call'
1708
+
1709
+
1710
+ D, [2019-02-12T12:17:32.854359 #63382] DEBUG -- :  (0.7ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1711
+ D, [2019-02-12T12:17:32.857873 #63382] DEBUG -- :  (0.1ms) 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)
1712
+ D, [2019-02-12T12:17:32.858249 #63382] DEBUG -- :  (0.1ms) select sqlite_version(*)
1713
+ D, [2019-02-12T12:17:32.858834 #63382] DEBUG -- :  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1714
+ D, [2019-02-12T12:27:50.994489 #63540] DEBUG -- :  (0.5ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1715
+ D, [2019-02-12T12:27:51.004741 #63540] DEBUG -- :  (0.2ms) 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)
1716
+ D, [2019-02-12T12:27:51.005160 #63540] DEBUG -- :  (0.1ms) select sqlite_version(*)
1717
+ D, [2019-02-12T12:27:51.006415 #63540] DEBUG -- :  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1718
+ D, [2019-02-12T12:56:43.697924 #65091] DEBUG -- :  (7.2ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1719
+ D, [2019-02-12T12:56:43.718731 #65091] DEBUG -- :  (1.9ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1720
+ D, [2019-02-12T12:56:43.724222 #65091] DEBUG -- :  (0.4ms) 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) 
1721
+ D, [2019-02-12T12:56:43.729394 #65091] DEBUG -- :  (1.4ms) SELECT sqlite_version(*)
1722
+ D, [2019-02-12T12:56:43.733195 #65091] DEBUG -- :  (0.5ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1723
+ D, [2019-02-12T12:56:43.740007 #65091] DEBUG -- :  (1.3ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1724
+ D, [2019-02-12T13:00:45.777424 #65261] DEBUG -- :  (5.3ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1725
+ D, [2019-02-12T13:00:45.796140 #65261] DEBUG -- :  (1.9ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1726
+ D, [2019-02-12T13:00:45.801466 #65261] DEBUG -- :  (0.4ms) 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) 
1727
+ D, [2019-02-12T13:00:45.805627 #65261] DEBUG -- :  (1.2ms) SELECT sqlite_version(*)
1728
+ D, [2019-02-12T13:00:45.807932 #65261] DEBUG -- :  (0.3ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1729
+ D, [2019-02-12T13:00:45.812706 #65261] DEBUG -- :  (0.8ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1730
+ D, [2019-02-12T13:05:40.286797 #65339] DEBUG -- :  (5.3ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1731
+ D, [2019-02-12T13:05:40.303893 #65339] DEBUG -- :  (1.8ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1732
+ D, [2019-02-12T13:05:40.309054 #65339] DEBUG -- :  (0.4ms) 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) 
1733
+ D, [2019-02-12T13:05:40.313761 #65339] DEBUG -- :  (1.7ms) SELECT sqlite_version(*)
1734
+ D, [2019-02-12T13:05:40.316277 #65339] DEBUG -- :  (0.3ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1735
+ D, [2019-02-12T13:05:40.321181 #65339] DEBUG -- :  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1736
+ D, [2019-02-12T13:06:28.637155 #65390] DEBUG -- :  (5.6ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1737
+ D, [2019-02-12T13:06:28.654448 #65390] DEBUG -- :  (1.6ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1738
+ D, [2019-02-12T13:06:28.658863 #65390] DEBUG -- :  (0.4ms) 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) 
1739
+ D, [2019-02-12T13:06:28.663580 #65390] DEBUG -- :  (1.3ms) SELECT sqlite_version(*)
1740
+ D, [2019-02-12T13:06:28.666134 #65390] DEBUG -- :  (0.3ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1741
+ D, [2019-02-12T13:06:28.671859 #65390] DEBUG -- :  (0.9ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1742
+ D, [2019-02-12T13:08:13.536231 #65504] DEBUG -- :  (5.2ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1743
+ D, [2019-02-12T13:08:13.552144 #65504] DEBUG -- :  (1.4ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1744
+ D, [2019-02-12T13:08:13.556227 #65504] DEBUG -- :  (0.4ms) 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) 
1745
+ D, [2019-02-12T13:08:13.561030 #65504] DEBUG -- :  (1.2ms) SELECT sqlite_version(*)
1746
+ D, [2019-02-12T13:08:13.563438 #65504] DEBUG -- :  (0.3ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1747
+ D, [2019-02-12T13:08:13.568211 #65504] DEBUG -- :  (0.4ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1748
+ D, [2019-02-12T13:08:36.794034 #65553] DEBUG -- :  (5.7ms) CREATE TABLE "books" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar) 
1749
+ D, [2019-02-12T13:08:36.811989 #65553] DEBUG -- :  (1.8ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1750
+ D, [2019-02-12T13:08:36.817097 #65553] DEBUG -- :  (0.4ms) 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) 
1751
+ D, [2019-02-12T13:08:36.821546 #65553] DEBUG -- :  (1.3ms) SELECT sqlite_version(*)
1752
+ D, [2019-02-12T13:08:36.824921 #65553] DEBUG -- :  (0.4ms) SELECT name FROM sqlite_master WHERE type = 'table' AND name = "delayed_jobs"
1753
+ D, [2019-02-12T13:08:36.830938 #65553] DEBUG -- :  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
@@ -7,6 +7,30 @@ RSpec.describe "Rack integration specs" do
7
7
  include_examples 'rack examples'
8
8
 
9
9
  describe "context payload" do
10
+ let(:endpoint) do
11
+ 'https://api.airbrake.io/api/v3/projects/113743/notices'
12
+ end
13
+
14
+ let(:routes_endpoint) do
15
+ 'https://api.airbrake.io/api/v5/projects/113743/routes-stats'
16
+ end
17
+
18
+ let(:queries_endpoint) do
19
+ 'https://api.airbrake.io/api/v5/projects/113743/queries-stats'
20
+ end
21
+
22
+ # Airbrake Ruby has a background thread that sends performance requests
23
+ # periodically. We don't want this to get in the way.
24
+ before do
25
+ allow(Airbrake.notifiers[:performance][:default]).
26
+ to receive(:notify).and_return(nil)
27
+
28
+ stub_request(:post, endpoint).to_return(status: 200, body: '')
29
+ [routes_endpoint, queries_endpoint].each do |endpoint|
30
+ stub_request(:put, endpoint).to_return(status: 200, body: '')
31
+ end
32
+ end
33
+
10
34
  it "includes version" do
11
35
  get '/crash'
12
36
  wait_for_a_request_with_body(
@@ -8,10 +8,11 @@ RSpec.describe "Rails integration specs" do
8
8
 
9
9
  include_examples 'rack examples'
10
10
 
11
- # Airbrake Ruby has a background thread that sends requests to
12
- # `/routes-stats` periodically. We don't want this to get in the way.
11
+ # Airbrake Ruby has a background thread that sends performance requests
12
+ # periodically. We don't want this to get in the way.
13
13
  before do
14
- allow(Airbrake[:default]).to receive(:notify_request).and_return(nil)
14
+ allow(Airbrake.notifiers[:performance][:default]).
15
+ to receive(:notify).and_return(nil)
15
16
  end
16
17
 
17
18
  if ::Rails.version.start_with?('5.')
@@ -35,6 +36,7 @@ RSpec.describe "Rails integration specs" do
35
36
  before do
36
37
  login_as(OpenStruct.new(id: 1, email: 'qa@example.com', username: 'qa-dept'))
37
38
  get(route, foo: :bar)
39
+ sleep 2
38
40
  end
39
41
 
40
42
  it "includes component information" do
@@ -197,7 +199,7 @@ RSpec.describe "Rails integration specs" do
197
199
 
198
200
  context "when Airbrake is not configured" do
199
201
  before do
200
- @notifiers = Airbrake.instance_variable_get(:@notifiers)
202
+ @notifiers = Airbrake.notifiers[:notice]
201
203
  @default_notifier = @notifiers.delete(:default)
202
204
  end
203
205
 
@@ -238,7 +240,7 @@ RSpec.describe "Rails integration specs" do
238
240
  # Make sure the Logger intergration doesn't get in the way.
239
241
  allow_any_instance_of(Logger).to receive(:airbrake_notifier).and_return(nil)
240
242
 
241
- @notifiers = Airbrake.instance_variable_get(:@notifiers)
243
+ @notifiers = Airbrake.notifiers[:notice]
242
244
  @default_notifier = @notifiers.delete(:default)
243
245
  end
244
246
 
@@ -281,6 +283,7 @@ RSpec.describe "Rails integration specs" do
281
283
  allow_any_instance_of(DummyController).to receive(:current_user) { user }
282
284
 
283
285
  get '/crash'
286
+ sleep 2
284
287
  wait_for_a_request_with_body(
285
288
  /"user":{"id":"1","username":"qa-dept","email":"qa@example.com"}/
286
289
  )
@@ -288,32 +291,37 @@ RSpec.describe "Rails integration specs" do
288
291
  end
289
292
  end
290
293
 
291
- describe "the route stats hook" do
292
- let(:routes_endpoint) do
293
- 'https://api.airbrake.io/api/v5/projects/113743/routes-stats'
294
- end
295
-
294
+ describe "the performance hook" do
296
295
  before do
297
- stub_request(:put, routes_endpoint).to_return(status: 200, body: '')
296
+ expect(Airbrake.notifiers[:performance][:default]).
297
+ to receive(:notify).at_least(:once).and_call_original
298
298
  end
299
299
 
300
300
  it "notifies request" do
301
- expect(Airbrake[:default]).to receive(:notify_request).and_call_original
302
-
303
301
  get '/crash'
304
302
  sleep 2
305
303
 
306
304
  wait_for_a_request_with_body(/"errors"/)
307
305
 
308
306
  body = %r|
309
- {"routes":\[{"method":"GET","route":"\/crash\(\.:format\)","statusCode":500
307
+ {"routes":\[.*{"method":"GET","route":"\/crash\(\.:format\)","statusCode":500
310
308
  |x
311
309
  wait_for(a_request(:put, routes_endpoint).with(body: body)).
312
310
  to have_been_made.once
313
311
  end
314
312
 
313
+ it "notifies query" do
314
+ get '/crash'
315
+ sleep 2
316
+
317
+ body = %r|
318
+ {"queries":.*"method":"GET","route":"/crash\(\.:format\)","query":
319
+ |x
320
+ wait_for(a_request(:put, queries_endpoint).with(body: body)).
321
+ to have_been_made.once
322
+ end
323
+
315
324
  it "defaults to 500 when status code for exception returns 0" do
316
- expect(Airbrake[:default]).to receive(:notify_request).and_call_original
317
325
  allow(ActionDispatch::ExceptionWrapper).
318
326
  to receive(:status_code_for_exception).and_return(0)
319
327
 
@@ -323,7 +331,7 @@ RSpec.describe "Rails integration specs" do
323
331
  wait_for_a_request_with_body(/"errors"/)
324
332
 
325
333
  body = %r|
326
- {"routes":\[{"method":"HEAD","route":"\/crash\(\.:format\)","statusCode":500
334
+ {"routes":\[.*{"method":"HEAD","route":"\/crash\(\.:format\)","statusCode":500
327
335
  |x
328
336
  wait_for(a_request(:put, routes_endpoint).with(body: body)).
329
337
  to have_been_made.once