Skip to content

feat(core): Add shared flushIfServerless function #17177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 30, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jul 25, 2025

Follow-up for this PR: #17168

Creating a shared function flushIfServerless as this functionality is used quite often in various SDKs.

@s1gr1d s1gr1d requested review from Lms24 and AbhiPrasad July 25, 2025 13:37
}
})(),
);
await flushIfServerless();

This comment was marked as outdated.

@s1gr1d s1gr1d force-pushed the sig/flushIfServerless-core branch from 6229acd to 4478ec6 Compare July 25, 2025 14:00
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

github-actions bot commented Jul 29, 2025

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 23.76 kB - -
@sentry/browser - with treeshaking flags 22.35 kB - -
@sentry/browser (incl. Tracing) 39.41 kB - -
@sentry/browser (incl. Tracing, Replay) 77.53 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.39 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 82.24 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 94.36 kB - -
@sentry/browser (incl. Feedback) 40.45 kB - -
@sentry/browser (incl. sendFeedback) 28.44 kB - -
@sentry/browser (incl. FeedbackAsync) 33.34 kB - -
@sentry/react 25.5 kB - -
@sentry/react (incl. Tracing) 41.38 kB - -
@sentry/vue 28.2 kB - -
@sentry/vue (incl. Tracing) 41.21 kB - -
@sentry/svelte 23.79 kB - -
CDN Bundle 25.28 kB - -
CDN Bundle (incl. Tracing) 39.28 kB - -
CDN Bundle (incl. Tracing, Replay) 75.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.83 kB - -
CDN Bundle - uncompressed 73.86 kB - -
CDN Bundle (incl. Tracing) - uncompressed 116.29 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 230.6 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.41 kB - -
@sentry/nextjs (client) 43.44 kB - -
@sentry/sveltekit (client) 39.84 kB - -
@sentry/node-core 47.48 kB -0.01% -1 B 🔽
@sentry/node 145.79 kB - -
@sentry/node - without tracing 91.58 kB - -
@sentry/aws-serverless 103.03 kB - -

View base workflow run

@s1gr1d s1gr1d merged commit 6b23b27 into develop Jul 30, 2025
178 checks passed
@s1gr1d s1gr1d deleted the sig/flushIfServerless-core branch July 30, 2025 07:47
chargome pushed a commit that referenced this pull request Jul 31, 2025
Follow-up for this PR:
#17168

Creating a shared function `flushIfServerless` as this functionality is
used quite often in various SDKs.
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.

3 participants