Next.js Instrumentation Hook: OpenTelemetry Traces and Custom Spans (2026)
Wire OpenTelemetry into Next.js with instrumentation.ts, @vercel/otel, custom spans, and onRequestError. Real traces you can actually read in prod.
React performance engineer. Lives in DevTools. Will explain to anyone listening why Suspense changes everything.
Wire OpenTelemetry into Next.js with instrumentation.ts, @vercel/otel, custom spans, and onRequestError. Real traces you can actually read in prod.
Find the heavy chunks in your Next.js app, then cut First Load JS by 30 to 60 percent. Install @next/bundle-analyzer, read the treemap, then use next/dynamic, Server Components, and optimizePackageImports to ship under 130 KB per route in Next.js 16.
React Compiler lands in Next.js 16 as a stable, one-flag setup. Here's how to enable it, what useMemo and useCallback calls you can finally delete, and how to verify the wins in React DevTools.