-
We're just getting started with Sentry in our Laravel project that has some areas with full-page Livewire components. I'm happy to have the information about the components and breadcrumbs for Livewire, these are great! Due to some complexity with a very large component we have lots of Livewire errors complaining about components not being found though they are initialized without an issue and the page functions as needed. We are using only the Laravel Sentry package and have no JavaScript SDK configured but I can't seem to find a way to ignore these exceptions. Here's an example:
This isn't a PHP class and I've tried a few steps to ignore the exception in the config to no avail. We used all of our spans in our first month because this exception is being reported tens of thousands of times so it needs to be filtered out before being sent to Sentry. I've tried adding the following to our Sentry config file in Laravel but it has no effect: 'ignore_exceptions' => ['UnhandledRejection'], The issue seems to be somewhere between PHP and JavaScript, and I can't quite figure it out. Any help with this would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This sounds like a JavaScript problem actually 😅 Do you also have the JavaScript SDK setup per chance? You will need to ignore it there not in Laravel 😉 |
Beta Was this translation helpful? Give feedback.
All SDKs caputer errors by default. If you want to turn this off, set
sampleRate: 0
.