sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

feat(flags): add node support for generic featureFlagsIntegration and move utils to core

Open aliu39 opened this issue 7 months ago • 1 comments

The featureFlagsIntegration is an integration to manually buffer feature flags on evaluation, and capture them in event contexts and span attributes. This PR moves it from browser to core, as well as the shared functionality/utils of all FF integrations (no browser specific logic).

Browser exports and functionality is unchanged. Per @AbhiPrasad 's recommendation I've manually exported the integration in all the packages zodErrorsIntegration is exported. Note many backend pkgs use a wildcard (*) export from node.

TODO:

  • [x] add node-integration-tests
  • [ ] update platform docs

Part of

  • https://github.com/getsentry/team-replay/issues/510

aliu39 avatar Jun 15 '25 00:06 aliu39

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.99 kB - -
@sentry/browser - with treeshaking flags 23.76 kB - -
@sentry/browser (incl. Tracing) 38.79 kB - -
@sentry/browser (incl. Tracing, Replay) 76.92 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 81.68 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 93.75 kB - -
@sentry/browser (incl. Feedback) 40.73 kB - -
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.59 kB - -
@sentry/react 25.76 kB - -
@sentry/react (incl. Tracing) 40.78 kB - -
@sentry/vue 28.36 kB - -
@sentry/vue (incl. Tracing) 40.66 kB - -
@sentry/svelte 24.01 kB - -
CDN Bundle 25.48 kB - -
CDN Bundle (incl. Tracing) 38.96 kB - -
CDN Bundle (incl. Tracing, Replay) 74.81 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 80.23 kB - -
CDN Bundle - uncompressed 74.48 kB - -
CDN Bundle (incl. Tracing) - uncompressed 115.3 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 229.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 242.18 kB - -
@sentry/nextjs (client) 42.44 kB - -
@sentry/sveltekit (client) 39.28 kB - -
@sentry/node 150.76 kB - -
@sentry/node - without tracing 98.52 kB - -
@sentry/aws-serverless 124.27 kB -0.01% -1 B 🔽

View base workflow run

github-actions[bot] avatar Jun 15 '25 01:06 github-actions[bot]