Closed benzeghers-bold closed 1 year ago
Hi @benzeghers-bold, if the New Relic code does not rethrow the exception it sounds like a bug in that code, error monitoring/performance monitoring software should rethrow any exceptions that are captured. Have you raised this with New Relic? If not I would suggest raising this with their support team to get their take on it.
Closing this out, as we haven't heard back from you. Happy to reopen as necessary.
Describe the bug
The New Relic PHP extension registers an exception handler before BugSnag. Bugsnag-php calls the previous exception handler but since it does not rethrow the exception,
$enableShutdownHandler
is not set tofalse
. This causes duplicate errors in BugSnag, one from the exception handler and one from the shutdown handler.Environment
bugsnag-php version: v3.29.0 PHP version: 8.1 New Relic daemon version: 10.0.0.312-9fd43b56a296
Steps to reproduce
$bugsnag = Bugsnag\Client::make(); Bugsnag\Handler::register($bugsnag);
throw new Exception('Uncaught Exception');