-
-
Notifications
You must be signed in to change notification settings - Fork 435
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 cached events periodically #912
Comments
as agreed, I'll mark it as a feature request, thanks @nominalista |
Thanks @marandaneto. Just to be sure - are you considering the whole periodic mechanism or only method that would allow to send cached events? If whole mechanism, is such method already existing? |
the mechanism to send periodically is something to be done, this is the feature request. If you use this integration periodically, it'd work, but it might be racey, be aware of that. |
Ok, thank you! |
@marandaneto, how is it possible to use the integration periodically (as you mentioned in your last comment)? |
this issue isn't Android specific, hence removing the Android label |
@jadbaz this feature isn't supported yet, I'd prefer to not share a hacky solution with flawns, please upvote the issue, and let's see if we can get prioritized. |
Hello, |
I think this is really important for client apps and I'm also waiting for this. |
We've expanded the offline caching feature guidelines further: https://develop.sentry.dev/sdk/features/#buffer-to-disk Relates to: getsentry/sentry-dotnet#1504 |
It'd benefit when you have an unstable connection, or no connection at all. The next step would be to implement an improvement already made by the Sentry Cocoa SDK, which is sending every pending envelope once an envelope is captured. How does that sound? |
@marandaneto FWIW, I like that Sentry doesn't use WorkManager/AlarmManager, etc. to auto-initialise background jobs for sending cached events – because, I have a usecase where I initialise Sentry conditionally (only if a feature flag is on). I see that currently |
I am very interested with such a feature. One thing that could be done to help apps is to implement the |
After some discussion we're considering to close this in favor of:
@farfromrefug Given that we'll implement 1 and 2, would you still be interested in having a manual (3) option? |
@markushi if possible yes that would be good I think. The case I see is a failure to send on envelop added (like server down or error) and then the app would like to force a "try again" |
Let's create a new issue dedicated to providing manual API for force-flushing pending envelopes and close this one. @markushi |
Closing this in favor of #2920, please upvote the issue to give it more priority! |
Because some of the events may be not be sent immediately after they are created, it would be great if there was an option to send these events periodically, even if the app is not restarted.
Is there any method in SDK that I can call and try to send cached events? I would use it as a temporary solution along with e.g.
WorkManager
.The text was updated successfully, but these errors were encountered: