Force a Notification from a Custom Exception?
toml
Posted on
Jan 14 2014
Hi,
I'm new to Raygun, and didn't see this referenced in the overview. I would like to be able to force a notification to be sent to [developers | ops] for certain kinds of Exception. Is this possible through Raygun?
The use case I had in mind was if my app was unable to send emails (a critical piece of functionality) developers should be alerted immediately. The app would throw, say, CriticalEmailBrokenException and that would trigger Raygun to send an alert to a configured group of people.
TIA,
Tom
John-Daniel Trask
Raygun
Posted on
Jan 15 2014
Hi Tom,
Raygun doesn't currently provide this but it's a really cool idea. I've noticed recently more people asking about custom alerting so it's something we're starting to look at how we could build this out.
So unfortunately not yet, but if you had any other examples, or how you think it could be handled, I'd love to hear. My thinking would be that we looked more at putting a flag or something on a message sent to Raygun. That could effectively be a routing flag. My concern with looking at the exception type is that some systems don't have great type systems and it's possible to forget about a type of exception (not to mention how often we all find ourselves thinking "But that shouldn't be possible for that error be thrown there..." :-)
Let me know what you think!
Thanks,
John-Daniel Trask
Co-founder
Mindscape