fix(nextjs): quiet the zero-config OTel provider under Next cacheComponents prerender (#259) #279
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.56) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 145 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.298
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #279"
general
weight: 0.35
krassx
Fixes #259.
Reproduced on a real Next 16.4.6
cacheComponents+next startfixture: every dynamic page loggedunstable value Math.random() while prerendering, and once that was fixed a second source,Date.now(), surfaced.Three sources, all in the self-registered OTel path:
Math.random()per span id ->createIdGenerator(xoshiro128**, seeded once atregister()).Spanconstructor readsDate.now()-> provider wrapped so spans start inside anAsyncLocalStorage.snapshot()captured at registration (parent context read outside and passed explicitly;startActiveSpancallback runs outside; SDK overload parity).createBugseeSpanProcessordefault clock readDate.now()on span end ->performance.timeOrigin + performance.now()(used only for age eviction).Tests: unit (mutation-checked) + new real-Next 16 e2e
@bugsee/nextjs-e2etest/cache-components.e2e.ts. Opus review done; findings fixed in the second commit.Behaviour change: none functional; log noise removed; span ids come from a seeded PRNG instead of Math.random.
🤖 Generated with Claude Code