You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SEO optimization: /error-tracking/nextjs — error.tsx/global-error reporting, instrumentation-client init (docs part of #932) #960
Daily SEO optimization cycle 2026-11-13 (existing page; owner: SEO Optimization). Docs part of #932 for this one page only; the SDK fix (no shutdown on provider unmount, 1.3.4) and the /docs/nextjs and /monitoring/nextjs updates stay on #932.
Problem: the page says uncaught browser errors are reported after init and teaches provider-only init. Verified today on Next.js 16.4.6 + @telemetry-tracker/next 1.3.3 (production build, headless Chrome, mock ingest):
provider-only init: render crash that reaches global-error.tsx -> NOT reported, even with trackError in global-error (provider unmount -> shutdown); hydration crash -> NOT reported.
error.tsx without trackError -> NOT reported (Next onCaughtError only console.error in production; same code in next 15.5.28 and 16.4.6).
init() in instrumentation-client.ts (no provider) + TrackPageView/useTrackPage: hydration crash, global render crash, segment error.tsx with trackError, onClick throw, $screen events -> all reported.
Page-1 SERP (Next.js error.js docs, Sentry capturing-errors for Next.js, TrackJS Next.js 16) all teach reporting from error.tsx / global-error.tsx.
Plan: title/meta, corrected lede, coverage table, setup via instrumentation-client.ts (Next 15.3+) with provider fallback + honest limitation, error.tsx / global-error.tsx snippets (digest split as in the Server Components guide), FAQ + FAQPage JSON-LD, HowTo steps. Content only; no SDK/pricing change.
Activity
seo(nextjs): instrumentation-client init, error.tsx/global-error repo…