getsentry / getsentry/sentry-javascript

Investigate tree shaking of transaction code when span streaming is used

未关闭
#22,580 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Core Feature javascript Traces
主要语言
TypeScript
星标
8.7k
派生
1.8k
平均合并
1 天 17 小时
30 天内合并 PR
515

描述

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.

贡献指南

打开贡献指南

调研方向

Start by examining the spanStreamingIntegration and the core transaction code paths responsible for the reported bundle-size increase. Measure the SDK bundle with streaming enabled, identify transaction paths that can be removed through tree shaking, and compare the resulting gzip size. Done means a documented projection of the reduction and a clear proposal for the tree-shaking flag and future transaction cleanup.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
performance, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。