otel-nextjs-style
Installation
SKILL.md
OTel Next.js Style
For Next.js apps, prefer the framework entrypoint.
// instrumentation.ts
import { registerOTel } from "@vercel/otel";
export function register() {
registerOTel({
serviceName: "mugline-web",
});
}
Do not replace this with a custom NodeSDK bootstrap unless the repo is not a
normal Next/Vercel app or already has a custom provider that must be extended.