-
-
Notifications
You must be signed in to change notification settings - Fork 318
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: Add flush #2140
feat: Add flush #2140
Conversation
Add blocking flush to send out all envelope items. Fixes GH-1013
|
Performance metrics 🚀
|
We need SentryTime also on tvOS so we can make it available everywhere.
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.
LGTM.
I have only one observation regarding comments.
Sources/Sentry/Public/SentryClient.h
Outdated
* Waits synchronously for the SDK to flush out all queued and cached items. Returns if the SDK | ||
* doesn't complete the flush before the specified timeout period has elapsed or if there is no | ||
* internet connection. The SDK doesn't dispose the client or the hub. |
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.
l: The description looks a bit confusion "Returns if the SDK doesn't complete...", if everything work then this function does not return? I know it does, but the phrasing is odd for me (maybe just me). Maybe we could have the error parameter?
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.
Thanks for the feedback. Is it better now?
📜 Description
Add blocking flush to send out all envelope items.
This PR is based on #2169.
💡 Motivation and Context
Fixes GH-1013
💚 How did you test it?
Unit tests and real devices.
📝 Checklist
🔮 Next steps