-
Notifications
You must be signed in to change notification settings - Fork 130
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
Enable custom report stack trace #1706
Comments
Hi @Blankwonder There has been a similar discussion in the past and a workaround was suggested, so I'd recommend that you have a read and consider whether a similar implementation may provide a solution for you: #794 (comment) We do have an item on our backlog to consider implementing a I will keep this issue open for now, as we're keen to hear your thoughts on the suggested workaround. Please do let us know if you have any questions. |
Thank you @mclack, the current private API can well meet my needs. I will try to call them directly to address the needs. Is there any particular reason why they haven't been made public directly? As for the variant of notify using block, I might not need it much. The reason I call notify within dispatch_async is not due to performance reasons, but because certain specific operations need to be executed on a dedicated queue. However, there may be exceptions with the passed parameters, so I need to know the call stack before this function calls dispatch_async. |
Hi @Blankwonder,
Thanks for confirming this, and for telling us a bit more about your use case. Regarding the threads API being made public, we have raised this with our engineers, and we will reach back to you if we decide to make this public in future. |
Thank you for following up @hannah-smartbear. After testing this method, I discovered an issue: modifying the |
When using Bugsnag, I encounter the following two issues:
Due to the use of dispatch_async, the call stack recorded when calling [Bugsnag notifyError] loses its significance.
When using [Bugsnag notifyError] in an extension that cannot access the network, I serialize and save this error for uploading later in the main app, but at that point, the call stack is also meaningless.
Therefore, if it were possible to save the current call stack at a specific moment and then attach it when executing [Bugsnag notifyError], these two needs could be perfectly addressed.
For example:
In fact, the threads object of BugsnagEvent is already readwrite; it just lacks a public interface to generate BugsnagThread.
The text was updated successfully, but these errors were encountered: