Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Log Exceptions Only on Final Retry When Using FilamentExceptions #67

Open
FrazeColder opened this issue Dec 11, 2024 · 0 comments

Comments

@FrazeColder
Copy link

I am using Laravel 11 with Filament v3 together with this awesome plugin to manage and log exceptions in my application. My notifications and some other Jobs are dispatched using a Redis queue, with retries configured (up to 3 or sometimes 5 attempts).

Currently, FilamentExceptions logs every exception, even for intermediate retries. This results in duplicate log entries for the same error when the job is retried. For example, if a notification fails due to a network issue (Connection to "xxx" has been closed unexpectedly) but succeeds on the second or third retry, the initial errors are still logged to filament exceptions.

Also, very important! Some jobs do not have a set retry variable. If those jobs fail on the first try, this means this is also the last try. Of course, I also want to log those failures. I only want to get rid of failed jobs being logged, which still have another retry left. Intermediate retry failures should not be logged to avoid noise in the logs. How can I archive this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant