The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import { withRoute } from "@/lib/with-route";
// Outgoing fetch() is auto-instrumented by @opentelemetry/instrumentation-undici
export const GET = withRoute("/nextjs/api/external", async () => {
const res = await fetch("https://jsonplaceholder.typicode.com/posts/1");
const post = await res.json();
return Response.json(post);
});