sentry

Hey, I'm using filament and sentry for production errors, but 500 in filament are not rendering in sentry. Do you know how to do ?
10 Replies
Dennis Koch
Dennis Koch2y ago
Not sure why there should be any difference in Filament vs other Laravel projects. Are errors outside the Filament context showing up in Sentry?
Maxime
MaximeOP2y ago
Yes ! It's why I don't understand
Dennis Koch
Dennis Koch2y ago
Does it work with Livewire components? Or is the Livewire error modal catching the error?
Maxime
MaximeOP2y ago
It's from a livewire error modal form an action
awcodes
awcodes2y ago
You might need to add something to your exception handler to manually send it Sentry if livewire is hijacking the exception. I would still expect it to just work though.
Maxime
MaximeOP2y ago
Do you have any idea where ?
awcodes
awcodes2y ago
Just look at the laravel docs for exceptions. You can add a check for the Exception that is thrown and if it’s whatever type of exception livewire is throwing you can send it to Sentry with a callback.
Maxime
MaximeOP2y ago
Thanks you but I'm already reporting every exception with
$this->reportable(function (Throwable $e) {
Integration::captureUnhandledException($e);
});
$this->reportable(function (Throwable $e) {
Integration::captureUnhandledException($e);
});
in the handler file
awcodes
awcodes2y ago
Right but livewire could be hijacking’s it so it never gets to the point of executing the native handler. I could be wrong, but have seen similar things happen where dd doesn’t work in livewire components.
Maxime
MaximeOP17mo ago
Hey, I had news about this I don't think it's a problem of livewire, because in I have sentry reporting me error from other livewire error. But when it's come from filament, nothing is reporting
Want results from more Discord servers?
Add your server