Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Reconnect pageload and serving request under `cacheComponents`

未关闭
#24,298 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

未指定任何文件或测试。首先定位 cacheComponents 的处理逻辑以及浏览器/服务器 trace-context 的入口点,然后检查缓存的 shell HTML 和动态空洞是如何渲染的。在有一个 cacheComponents 页面覆盖的情况下,pageload trace X 和 server trace Y 能够重新连接,且不会重放缓存 shell 中过时的 context,即表示完成。

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

描述

javascript

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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