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
{{ message }}
Repository navigation
Investigate tree shaking of transaction code when span streaming is used #22580
Span streaming adds a hefty bundle size increase (~5KB gzip, 2-3KB added via the spanStreamingIntegration, rest is in core code) to the SDK, when enabled. In v11, streaming becomes the default, so the size increase is always there. We should investigate if we can provide a tree shaking flag for bundle-size conscious users that takes care of removing transaction code paths that are "dead code" for streaming mode.
This is also a good exercise for us to determine which code paths we should remove once transactions are no longer supported by the SDK (v12?). Plus it will give us a projection of the since decrease this will yield.
changed the title [-]Investigate adding a tree shaking flag to remove transaction code when span streaming is used[/-][+]Investigate adding tree shaking of transaction code when span streaming is used[/+]on Jul 24, 2026
changed the title [-]Investigate adding tree shaking of transaction code when span streaming is used[/-][+]Investigate tree shaking of transaction code when span streaming is used[/+]on Jul 24, 2026
Activity
linear-code commentedon Jul 24, 2026
JS-3133
[-]Investigate adding a tree shaking flag to remove transaction code when span streaming is used[/-][+]Investigate adding tree shaking of transaction code when span streaming is used[/+][-]Investigate adding tree shaking of transaction code when span streaming is used[/-][+]Investigate tree shaking of transaction code when span streaming is used[/+]feat(core)!: Enable span streaming by default (#22642)