Reconnect pageload and serving request under `cacheComponents`
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- observability, web-dev
调研方向
未指定任何文件或测试。首先定位 cacheComponents 的处理逻辑以及浏览器/服务器 trace-context 的入口点,然后检查缓存的 shell HTML 和动态空洞是如何渲染的。在有一个 cacheComponents 页面覆盖的情况下,pageload trace X 和 server trace Y 能够重新连接,且不会重放缓存 shell 中过时的 context,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Example: any cacheComponents page. The browser records pageload trace X, the server records request trace Y, and they never meet. The SDK currently disables the sentry-trace meta tags. because the shell HTML is cached and baked-in context would replay one stale trace to every visitor. Result: two orphan traces per visit. A slow pageload cannot be followed into its server work.
Solves: the incomplete-traces complaint. This is the gap users notice first.
Fix idea: carry trace context only in the part of the response that is never cached. For example, a small component rendered inside a dynamic hole streams the meta tag or script with trace Y's context, and the browser SDK picks it up. The prerendered shell stays context-free. This sketch has no prototype behind it yet - research this first.
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.9k
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 562
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-javascript 的其他 Issue
-
Browser Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 85/100
getsentry/sentry-javascript#24577 · 1 条评论 ·
-
Task
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#24558 · 1 条评论 ·
-
Task
难度 1/5 1 小时以内 新手友好度 90/100
getsentry/sentry-javascript#24557 · 1 条评论 ·
-
Task
难度 2/5 1-3 小时 新手友好度 84/100
getsentry/sentry-javascript#24556 · 1 条评论 ·
-
Task
难度 1/5 1-3 小时 新手友好度 90/100
getsentry/sentry-javascript#24555 · 1 条评论 ·
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
blocklist removal
难度 2/5 1-3 小时 新手友好度 65/100
MetaMask/eth-phishing-detect#296544 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
pastelsky/bundlephobia#1122 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100