Skip to content

feat(browser): Flush offline queue on flush and browser online event#14764

Merged
AbhiPrasad merged 4 commits intodevelopfrom
timfish/feat/offline-flush-online
Dec 18, 2024
Merged

feat(browser): Flush offline queue on flush and browser online event#14764
AbhiPrasad merged 4 commits intodevelopfrom
timfish/feat/offline-flush-online

Conversation

@timfish
Copy link
Copy Markdown
Collaborator

@timfish timfish commented Dec 17, 2024

This PR:

  • Resets the offline queue time on flush so that sending is retried
  • In the browser calls flush when the online event is fired

@timfish timfish changed the title feat: Flush offline queue on flush and browser online event feat(browser): Flush offline queue on flush and browser online event Dec 17, 2024
Copy link
Copy Markdown
Contributor

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a test

@timfish timfish requested a review from AbhiPrasad December 18, 2024 16:47
@AbhiPrasad
Copy link
Copy Markdown
Contributor

Let's make sure we backport this to v8! We can get it released for that.

@AbhiPrasad AbhiPrasad merged commit 2628e40 into develop Dec 18, 2024
@AbhiPrasad AbhiPrasad deleted the timfish/feat/offline-flush-online branch December 18, 2024 18:57
@joshkel
Copy link
Copy Markdown
Contributor

joshkel commented Jan 8, 2025

@AbhiPrasad Is the plan still to backport this offline-flush feature to Sentry v8? I can accept either way, I'm just hoping to know for planning purposes. Thank you.

@timfish
Copy link
Copy Markdown
Collaborator Author

timfish commented Jan 8, 2025

Is the plan still to backport this offline-flush feature to Sentry v8?

Sorry I must have missed this! I will backport to v8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On-demand flushing of offline transport

3 participants