-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: API to add a stack trace to an exception or thread #723
Conversation
include/sentry.h
Outdated
/** | ||
* Adds a Stack Trace conforming to the Stack Trace Interface to a value. | ||
* | ||
* The value needs to be either an exception event, or a thread object. |
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.
An exception event object, or an exception object (not event)? The implementation assumes the latter, which also makes more sense.
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.
You are right, it should be
The value needs to be either an exception or a thread object.
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.
How do you typically proceed with open conversations? I usually wait until the reviewer thinks the comment has been addressed in a follow-up commit, signaling by resolving.
Hi @jan-auer and @Swatinem, here are a few points to consider before I would make this a non-draft PR:
Given the similarity of the latter two, I wondered whether there is a customer use case where the call-site will create a Is the behavior inherited by Depending a bit on the last question should the function be called |
I don’t really have a strong opinion on this. The API generally gives more freedom (and with great power comes great responsibility) As for naming, maybe |
At this point, I am mostly trying to synchronize with the API idea for |
Proposal for #721