Skip to content

[@vercel/flags-core] quiet noisy stream reconnect logs#395

Open
lucleray wants to merge 2 commits into
mainfrom
luc/quiet-flags-stream-reconnect-logs
Open

[@vercel/flags-core] quiet noisy stream reconnect logs#395
lucleray wants to merge 2 commits into
mainfrom
luc/quiet-flags-stream-reconnect-logs

Conversation

@lucleray
Copy link
Copy Markdown
Member

@lucleray lucleray commented Jun 4, 2026

Flag stream reconnects produce frequent, non-actionable logs in consumers like logs-consumer-3. People seeing them have to decide whether to be concerned, but the SDK already retries (up to 15x with backoff) and falls back to embedded values in the meantime — so the per-attempt errors are noise. Context: help-flags thread.

  • Retryable Stream error failures are now silent; the underlying error is only logged once retries are exhausted (attached to the existing Max retry count exceeded error).
  • Stream initialization timeout, falling back and the polling equivalent now say they keep connecting/polling in the background, so the message reads as expected behavior rather than a failure.

A recovery log ("N evaluations served from fallback") was discussed but deferred to a follow-up to keep this minimal.

Validation

  • Updated black-box.test.ts cases that previously asserted Stream error on retryable failures (502 / missing body / init-timeout) to assert it is not logged before exhaustion; reworded timeout assertions.
  • pnpm test (black-box + stream-connection) and pnpm type-check green.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jun 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flags-playground Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
flags-sdk-dev Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
flags-sdk-next-15 Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
flags-sdk-next-16 Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
flags-sdk-snippets Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
flags-sdk-sveltekit-snippets Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
shirt-shop Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am
shirt-shop-api Ready Ready Preview, Comment, Open in v0 Jun 4, 2026 9:25am

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.

1 participant