instrumentationHook
The experimental next.config flag that Next.js 13 and 14 needed to enable instrumentation.ts.
In more detail
In Next.js 15 instrumentation is stable and the flag is no longer needed. Remove it when upgrading, as it now only produces a warning.
Related terms
- instrumentation — Code, often a library, that makes an application emit telemetry about its operations.
- next.config.js — The configuration file at the project root that sets Next.js options such as output, images and experimental features.
Taught in
- Instrumentation: OpenTelemetry & Performance Spans — Next.js 15 & Modern App Router Architecture