Next.js quickstart
Install and configure
Open Services → Connect a service, choose your host, then choose Next.js. Follow the installation and instrumentation steps for Node.js server routes. Edge routes need separate instrumentation.
If you host on Vercel, see the Vercel guide for the available export paths.
Open Connect a service in the App
Export traces
For direct export, copy the trace endpoint and authentication configuration from the App. For the Trace Drain path, add the destination and authentication header in Vercel instead. Store the Ingest Key in your server-side secrets and leave OTLP logs and metrics exporters disabled.
Verify
Restart the process, start Check for service data, and make a request to a server route. Allow time for batching and processing. Open the service when recent data is detected.
Check the service’s SLO settings and endpoint results before using the data to judge reliability. If the service does not appear, see Troubleshooting.