Note Vercel currently supports OpenTelemetry v1.x. Avoid installing @opentelemetry/*
2.x packages.
.env
, or in Vercel Project → Settings → Environment Variables).
instrumentation.ts
and import it once on the server (e.g. in _app.tsx
or at the top of your first API route).
register
function inside each serverless function.