Repository navigation
feat: Retry event delivery and flush on close - #253
flagsmithsmith[bot] wants to merge 3 commits into
Conversation
Its entry in Flagsmith/sdk-spec's compatibility matrix at v0.8.0: `core or events or local-evaluation`.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Implements the SDK spec v0.8.0's event delivery and client shutdown: - Retry a 500 like other transient failures, and drop a batch whose last attempt got one instead of keeping it. - Time out requests to the events API after 3 seconds, WithEventsRequestTimeout, rather than the client's request timeout. - Add Client.Close, which sends buffered events, retries included, within its context's deadline, and stops the client's background work. - FlushEvents only returns an error when its context ends first: failed sends are handled, logged and counted, never failing the application. - Wire the spec's flush, close and numbered-events steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Implemented spec v0.8.0 in 0ee482d. CI failed because 11 Changes
Locally: Review effort: 3/5 |
|
Superseded by #254, which carries this pull request's work over to the SDK spec's latest version. |
Contributes to Flagsmith/sdk-spec#23