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
Not sure why there should be any difference in Filament vs other Laravel projects. Are errors outside the Filament context showing up in Sentry?
Yes ! It's why I don't understand
Does it work with Livewire components? Or is the Livewire error modal catching the error?
It's from a livewire error modal
form an action
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.
Do you have any idea where ?
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.
Thanks you but I'm already reporting every exception with in the handler file
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.
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