-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Close sentry instance when quitting the app #608
Conversation
My original approach was to listen to sentry-unity/src/Sentry.Unity/Integrations/UnityApplicationLoggingIntegration.cs Lines 93 to 106 in 68b7ec1
Now I'm confused which one would be the best one to use - they seem to be duplicate implementations binding to the same event.. |
The In your case, I'd go with the |
3dfea1c
to
9ed8200
Compare
9ed8200
to
08e198f
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.
One questions but other than that. lgtm
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
c3882f4
to
c1f7b14
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.
The only risk I see is that an error/crash happens after the Unity's AppShutdown thing ran, and we'd be all shut down and not capture. For that reason, recently we've changed the .NET SDK to have the Dispose
handle returned by the Init
call behave like a Flush only since that's what the semantics where in the code snippets (block to capture and flush). So the SDK would continue to capture even after that block.
That said, .NET SDK's Close
continues to completely close the SDK since it swaps to a NoOp hub instance (the old one would be GC'ed):
closes #543
Native integrations