feat(rust-provider): add HTTP retry for flagLog writes - #452
Open
nicklasl wants to merge 1 commit into
Open
Conversation
nicklasl
added a commit
that referenced
this pull request
Aug 21, 2026
- Add retry with exponential backoff to flag log sending - 3 attempts, 500ms base delay, 2x backoff, ±10% jitter - Retries on 5xx, 408, 429, and network errors; no retry on 4xx - Respects Retry-After header from server - Warns (not errors) after retries exhausted - Applies to both Edge and Cloudflare destinations - Adds comprehensive test coverage with wiremock Ported from PR #452 onto current main architecture which uses LogDestination (Edge/Cloudflare) with fallback support.
nicklasl
force-pushed
the
nicklasl/rust-flaglog-retry
branch
from
August 21, 2026 13:31
8047e92 to
4c55c9e
Compare
nicklasl
marked this pull request as ready for review
August 21, 2026 13:31
Member
Author
PR Updated ✅Rebased onto current Changes from original PRThe original PR was based on an older version of
What was done✅ Ported retry-with-backoff logic onto the current architecture Test ResultsReady for review! 🚀 |
- Add retry with exponential backoff to flag log sending - 3 attempts, 500ms base delay, 2x backoff, ±10% jitter - Retries on 5xx, 408, 429, and network errors; no retry on 4xx - Respects Retry-After header from server - Warns (not errors) after retries exhausted - Applies to both Edge and Cloudflare destinations - Adds comprehensive test coverage with wiremock Ported from PR #452 onto current main architecture which uses LogDestination (Edge/Cloudflare) with fallback support.
nicklasl
force-pushed
the
nicklasl/rust-flaglog-retry
branch
from
August 21, 2026 14:47
4c55c9e to
4b5342d
Compare
Member
Author
Fixed 🔧Sorry about that! My first push accidentally uploaded file references instead of actual file contents (used New commit: 4b5342d Files are now correct:
CI should pass now! 🤞 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LogSender::send()in the Rust provider, matching the JS provider's flagLog retry behaviorRetry-Afterheader from server (takes precedence over computed backoff)Test plan
Retry-Afterheader respectparse_retry_afteris_retryable_statuscoverage for all relevant codes🤖 Generated with Claude Code