Skip to content

SEO optimization: /error-tracking/nextjs — error.tsx/global-error reporting, instrumentation-client init (docs part of #932) #960

Closed

Description

@unjica

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.

Page: https://telemetry-tracker.com/error-tracking/nextjs (last edit 2026-10-25)
GSC baseline (sc-domain, dataState all) 2026-10-16..2026-11-12: 25 impr / 0 clicks / 0.00% / pos 38.6. Visible: next.js error tracking 4 @23.8, nextjs error tracking 4 @23.0 (/monitoring/nextjs also shows for nextjs error tracking 3 @20.7).

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.

Flow: PR -> develop -> release PR -> main -> Railway, verify live, reviews 2026-11-27 / 2026-12-11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions