-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Sending captured events should honor sending fail. #932
Comments
There is currently no transport transactionality of events. If an event ends up in the send queue and the transport cannot send for whatever reason, the event is lost. If your use case expects regular network unavailability and requires delivery guarantees, the transport implementation can be customized. Send errors should be visible in the logs. |
Thanks I would consider to look to custom transport impelementation. |
Btw since you use |
Do I understand it correct that there is no way to cache messages if the network is currently not reachable? We have issues that our edge applications sometimes fails to handle loss of internet connectivity in a good way. This is exactly when we need the Sentry messages, but we don't get them since we don't have internet. I see that there is some dumping of the queue going on, but it is only done when we call the What would be the options to handle this? Can we make a solution using callbacks, or do we need to modify the source code to add our own transportation backend? The latter seems hard to maintain.. |
Yes.
I see. The current transport implementation doesn't really help with this use case.
To be clear:
What currently does not exist:
Ideally sentry would provide this, but it is currently not a priority. If you look into the transport implementations then you will see that these implementations use the same callback interface that is also available to users of the Native SDK: sentry-native/include/sentry.h Lines 638 to 744 in 811b9cd
sentry-native/src/transports/sentry_transport_curl.c Lines 300 to 313 in daf2d1c
As you can see, beyond the concrete implementation, this is the same very stable and minimal interface where any changes inside the SDK shouldn't affect your transport implementation down the road. You're also not bound to any technology choice although we recommend to take inspiration and adapt to your needs. |
Description
Sending captured events should honor sending fail.
When does the problem happen
Environment
Steps To Reproduce
Expected: The event is not send and event metadata is not removed, appropriate log statement raised.
Actual: Event is not send, event metadata is removed.
Log output
The text was updated successfully, but these errors were encountered: