getsentry / getsentry/sentry-javascript

Synthesize shell cache spans from RDC enumeration

オープン
#24,297 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
javascript
主要言語
TypeScript
スター
8.7k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
523

説明

*Example:*

```
export default function Page() {
return (<> {/* 'use cache', baked into the static shell */}
}>);
}
```

A request serves the shell, including the cached header, from the [Resume Data Cache]() before any of our code runs. The handler instrumentation never fires. The trace shows `LiveStock` and nothing about the cached half of the page.

*Solves:* "was my cached content used, and how old was it?" for shell-served entries.

*Fix idea:* from code in the dynamic hole (the server-component wrapper), read the request work-unit store's `resumeDataCache`, enumerate its entries, and emit synthetic `cache.get` spans with key digest and item age. Research verified that enumeration works and read interception does not. Pages without a dynamic hole stay invisible. Document that limit instead of fighting it.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start in the server-component wrapper and trace how the request work-unit store exposes its resumeDataCache; confirm the cache entries can be enumerated without relying on read interception. Emit synthetic cache.get spans containing each key digest and item age, and document that pages without a dynamic hole remain invisible.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
nextjs, typescript
領域
observability
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
66/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。