Skip to content

Conversation

@gm4sl
Copy link
Contributor

@gm4sl gm4sl commented Nov 8, 2023

Previously, only a subset protocol errors would be considered for retry when submitting metrics (summed or unique) to events.backtrace.io. This excluded, notably, a failure to connect to the server at all. If the device was offline at startup, for instance, then the "Application Launches" event would never get sent.

This commit changes the handling so that any network error will also go through the retry logic for submitting an event.

@gm4sl gm4sl requested a review from konraddysput November 8, 2023 20:44
Copy link
Collaborator

@konraddysput konraddysput left a comment

Choose a reason for hiding this comment

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

I strongly believe we don't need those changes. Please see my comments

@gm4sl gm4sl force-pushed the gm4sl/metrics-retry branch from 0e74546 to 5f37e2e Compare November 8, 2023 21:13
@gm4sl gm4sl changed the title metrics: retry submission on connection failure or any protocol error metrics: retry submission on connection failure Nov 8, 2023
Previously, only a subset protocol errors would be considered for retry
when submitting metrics (summed or unique) to events.backtrace.io. This
excluded, notably, a failure to connect to the server at all. If the
device was offline at startup, for instance, then the
"Application Launches" event would never get sent.

This commit changes the handling so that any network error will also
go through the retry logic for submitting an event.
@gm4sl gm4sl force-pushed the gm4sl/metrics-retry branch from 5f37e2e to 04bf084 Compare November 8, 2023 21:22
@gm4sl gm4sl merged commit b67bbbb into master Nov 8, 2023
@gm4sl gm4sl deleted the gm4sl/metrics-retry branch November 8, 2023 21:38
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.

3 participants