Skip to content

Use the runtime-provided ingest transport when available - #490

Draft
AndyBitz wants to merge 1 commit into
mainfrom
andyschneider/exp-3252-runtime-ingest
Draft

Use the runtime-provided ingest transport when available#490
AndyBitz wants to merge 1 commit into
mainfrom
andyschneider/exp-3252-runtime-ingest

Conversation

@AndyBitz

@AndyBitz AndyBitz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC
flags-sdk-dev Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC
flags-sdk-snippets Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC
shirt-shop Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC
shirt-shop-api Ready Ready Preview, v0 Sep 2, 2026 11:11am UTC

/**
* Flushes immediately when the runtime provides an ingest transport,
* otherwise falls back to the time-based scheduler.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fire-and-forget immediate flush on the runtime-ingest path is not tracked, so shutdown() can return before it completes, silently dropping pending usage events.

Fix on Vercel

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