Repository navigation
fix(elixir-client): Improve elixir client parity - #4031
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4031 +/- ##
==========================================
+ Coverage 85.56% 85.64% +0.08%
==========================================
Files 51 51
Lines 3352 3365 +13
Branches 614 615 +1
==========================================
+ Hits 2868 2882 +14
+ Misses 482 481 -1
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Claude Code ReviewSummaryThis revision adds four targeted tests for the new header validation and makes the What's Working Well
Issues FoundNo new issues found. Correction to Previous ReviewMy iteration 2 review flagged the "Unable to retrieve data" CI failures as likely new regressions. After tracing Suggestions (Nice to Have)
Issue ConformanceNo linked issue — unchanged. Recommended to link a corresponding issue if one exists. Previous Review Status
Review iteration: 3 | 2026-03-19 |
Switch from multiplicative jitter (90-100% of delay) to full jitter (random between 1 and delay), matching the AWS-recommended strategy used by the TypeScript client. Also align max delay from 30s to 32s.
Validate that required Electric headers are present on responses, raising a clear error mentioning proxy/CDN misconfiguration when they're missing. Previously, missing headers either caused unhelpful errors (electric-handle) or were silently ignored (electric-offset, electric-schema, electric-cursor).
d03ca2a to
6a69b46
Compare
6a69b46 to
15c8f04
Compare
|
This PR has been released! 🚀 The following packages include changes from this PR:
Thanks for contributing to Electric! |
### Use full jitter strategy for retry backoff Switch from multiplicative jitter (90-100% of delay) to full jitter (random between 1 and delay), matching the AWS-recommended strategy used by the TypeScript client. Also align max delay from 30s to 32s. ### Add response header validation Validate that required Electric headers are present on responses, raising a clear error mentioning proxy/CDN misconfiguration when they're missing. Previously, missing headers either caused unhelpful errors (electric-handle) or were silently ignored (electric-offset, electric-schema, electric-cursor).
Use full jitter strategy for retry backoff
Switch from multiplicative jitter (90-100% of delay) to full jitter (random between 1 and delay), matching the AWS-recommended strategy used by the TypeScript client. Also align max delay from 30s to 32s.
Add response header validation
Validate that required Electric headers are present on responses, raising a clear error mentioning proxy/CDN misconfiguration when they're missing. Previously, missing headers either caused unhelpful errors (electric-handle) or were silently ignored (electric-offset, electric-schema, electric-cursor).