You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have examples/nextjs and/or Next.js doc section in the EDOT Node.js docs.
Jessica has an example we can use or crib from.
IIUC, the core of it is using Next.js automatic loading of instrumentation.{ts,js} (https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation) to start the SDK. Something roughly like:
instrumentation.ts or src/instrumentation.ts (or .js):
We should have examples/nextjs and/or Next.js doc section in the EDOT Node.js docs.
Jessica has an example we can use or crib from.
IIUC, the core of it is using Next.js automatic loading of
instrumentation.{ts,js}
(https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation) to start the SDK. Something roughly like:instrumentation.ts
orsrc/instrumentation.ts
(or .js):Compare to similar usage of Vercel's own
@vercel/otel
described at: https://nextjs.org/docs/app/building-your-application/optimizing/open-telemetryI'm curious whether the instrumentation compares favourably. E.g. does the Next.js by default send spans with route info to any registered global TracerProvider? Etc.
The text was updated successfully, but these errors were encountered: