Each request to the Next.js application will send 2 traces. This seems to be related to the internal request routing as the operation.name differs and the first trace shows the actual path and the second trace shows the matched route.
E.g. in ApplicationInsights:
For example, a catch-all page that triggers a notFound() will show the first trace as successful and the second (correctly) as unsuccessful.
Each request to the Next.js application will send 2 traces. This seems to be related to the internal request routing as the
operation.name
differs and the first trace shows the actual path and the second trace shows the matched route.E.g. in ApplicationInsights:
For example, a catch-all page that triggers a
notFound()
will show the first trace as successful and the second (correctly) as unsuccessful.