solid_errors icon indicating copy to clipboard operation
solid_errors copied to clipboard

"Debounce" Mails

Open julianrubisch opened this issue 8 months ago • 6 comments

Forgive me if I'm missing something obvious but I couldn't find a way to configure email summaries, or "debouncing" of sorts.

For example, Solid Errors is sending emails for errors that have already occurred once, and I'd like to opt out of being re-notified of them.

Or, another way to put it, one could think about daily or weekly summaries 🤔

julianrubisch avatar Apr 17 '25 14:04 julianrubisch

In case it helps you out, I have an unmerged/closed PR that took care of this that I now run off a forked copy - https://github.com/imageaid/solid_errors. It only sends an error on the first instance OR if you resolve the error and it reoccurs, it will send once more.

I also added a "full_backtrace" mattr_accessor that you can set in your configs if you do not want all the "GEM" output in the backtrace (this can kind of work against you a bit if/when you run into an error that only has GEM output in the logs, which happens on occasion for me).

I do keep my fork up to date with this repo and, for now, no issues with the differences.

imageaid avatar May 11 '25 17:05 imageaid

Sad to see this was never merged!

julianrubisch avatar May 11 '25 18:05 julianrubisch

Yeah, for sure! I hope it can offer you some help!

I've been tweaking my fork a little lately again and may re-do my PR as two PRs: one to enable blocking the GEM output from a backtrace and one for the one email per error feature, so maybe it'll get merged in next time :)

imageaid avatar May 11 '25 18:05 imageaid

Yeah, I'd love those PRs. And I'll re-check out the current PR

fractaledmind avatar Jun 04 '25 20:06 fractaledmind

Been slammed getting a new app out the door but that is easing up and I will try and get both the PRs in later this week/weekend in the event they prove useful for the library!

imageaid avatar Jun 10 '25 17:06 imageaid

Oy ... finally got a minute to enter the PR. #80

Apologies on that delay!

imageaid avatar Jun 22 '25 16:06 imageaid