You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All SDKs must deliver tracking and exposure events the same way:
Retry on 408, 429, 502, 503, 504, network errors and timeouts: 3 attempts, backoff 1 s ×2 with full jitter. Drop the batch on any other status, including 500.
Each events request times out after 3 s.
Keep a batch that still fails buffered, ahead of newer events, for the next flush. The buffer holds 1000 events and drops the oldest when full. Only one batch is in flight at a time.
On 401/403, drop the buffer, stop sending, and make tracking a no-op.
flushEvents() waits for the send, including retries, and never raises. close(timeout) flushes and returns within the timeout.
Testing: SDKs send events to a fake events service in front of events. It passes requests through unless a scenario sets up responses for its environment key (a status, a dropped connection, or a hang), and reports the requests and the events it received, in order. Scenarios flush and close through SDK steps, so they don't depend on timers. Split them into two features: delivery (retry, buffer, auth) and shutdown (flush, close). Each retry scenario waits for real backoff, so keep them few.
A reference implementation is available in flagsmith-go-client, except close.
Activity
[-]Deliver events with a shared retry rule[/-][+]Retry event delivery and flush on close[/+]feat: Spec retrying event delivery and flushing on close (#24)
flagsmithsmith commentedon Nov 11, 2026
Shipped in spec v0.8.0. SDKs are on v0.9.0 — all released.
Zaimwa9 commentedon Nov 11, 2026
The go SDK should work on #245
feat: Retry event delivery and flush on close (#254)
feat: Retry event delivery and flush on close (#84)
feat: Deliver events with retries, a bounded buffer and a close timeo…
feat: Retry event delivery and flush on close (#158)
feat: Retry event delivery and flush on close (#129)
feat: Retry event delivery and flush on close (#127)
feat: Retry event delivery and close the client with a timeout (#253)
feat: Retry event delivery and flush on close (#217)
feat: Retry event delivery and flush on close (#74)
feat: Retry event delivery and flush on close (#111)
feat: Retry event delivery and flush on close (#102)
feat: Retry event delivery and flush on close (#440)
feat: Retry event delivery and flush on close (#283)