-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support annotated-exception #82
Conversation
ad0f759
to
3be0405
Compare
b2773fc
to
256adfd
Compare
256adfd
to
337f25a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like annotatedExceptionBeforeNotify
that sets class/message/stacktrace is yet to come?
Maybe I should go ahead and throw it into this PR. |
@pbrisbin I'm thinking we should go ahead and remove |
That's a good question, but I think it gets at your point about annotated-exceptions not being standardized as a callstack solution. Given that it's not, I don't think we can take away that existing support for trying to get whatever callstacks we can for users not using annotated-exception. But I think we can evangelize, and ensure good support for annotated-exception and hope it sees broader adoption. Then, perhaps, we can make it essentially required for this library to offer good stacktraces, and we could drop that support for other methods. |
Okay, I did rip that out already, but I can add it back as another fallback. |
I think this could be ready to go. However - While we're here, might as well also upstream eh, don't want to deal with adding an aeson dependency right now. Later. |
Yeah, any part of it that's not Freckle-specific sounds like a decent fit. I wonder, if we did the following all internally and automatically,
Then do we ever need to mention |
For annotations other than |
The only reason to include annotated exceptions into the API is if the user has their own |
Would be cool if freckle/blammo#30 were done :) |
b4f8eb8
to
b4160d9
Compare
Going to also fourmolu this whole project because I don't know how to run brittany and it's falling over on the CPP |
f26ea6f
to
b4160d9
Compare
I guess I defer to you. Would that be useful?
Makes sense.
Sure would. |
e04adaf
to
f9616b8
Compare
I could imagine if annotated-exception caught on more in the ecosystem at large, you could get libraries relying heavily on annotations rather than the underlying exception to convey information you might want to see in bugsnag. But this is hypothetical. And perhaps that could be remedied outside of this library by catching and re-throwing with those annotations converted to |
f9616b8
to
85de13d
Compare
Obviates https://github.com/freckle/megarepo/pull/31730 and some recent changes to freckle-app. When I roll back what I did to freckle-app I'll probably want to put an explicit lower bound on this version of
bugsnag
.Also added some build infrastructure - a newer
stack.yaml
, and some nix stuff that helps me.