Traces | Metrics | App Logs | Custom Logs | Profiling |
---|---|---|---|---|
✅ | ✖️ | ✖️ | ✅ | ✅ |
Next.js version 13.4
or newer installed. Check your Next.js version with the following command:@opentelemetry/api
package installed. If not, run the following command:instrumentation.ts
file must be located at the root
of your project unless you are using the src
directory. If you are using the src
directory, ensure the instrumentation.ts
file is placed within the src
directory, alongside the pages and app directories.pagesExtension
config option to add suffixesinstrumentation.ts
instrumentation.ts
file will not be invoked, resulting in the absence of traces or logs in your Middleware account.npx create-next-app@latest --example api-routes