You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to allow developers to suppress reporting for certain types of exceptions. This would be beneficial for exceptions that are considered "non-critical" or "expected" in some scenarios.
In some applications, exceptions like Spiral\Http\Exception\ClientException may be frequent and expected. However, these aren't always useful to report, especially if using tools like Sentry. Continuously reporting these could clutter the logs and reduce the visibility of more critical exceptions.
In the above code, an array $nonReportableExceptions is used to list exceptions that should not be reported. In the report method, we loop through this array to check if the current exception is in the list, and if so, we suppress the report.
The text was updated successfully, but these errors were encountered:
It would be great to allow developers to suppress reporting for certain types of exceptions. This would be beneficial for exceptions that are considered "non-critical" or "expected" in some scenarios.
In some applications, exceptions like
Spiral\Http\Exception\ClientException
may be frequent and expected. However, these aren't always useful to report, especially if using tools like Sentry. Continuously reporting these could clutter the logs and reduce the visibility of more critical exceptions.Example Implementation:
In the above code, an array
$nonReportableExceptions
is used to list exceptions that should not be reported. In the report method, we loop through this array to check if the current exception is in the list, and if so, we suppress the report.The text was updated successfully, but these errors were encountered: