Skip to content

fix: run Node instrumentation when using standalone server#89385

Open
naaa760 wants to merge 1 commit intovercel:canaryfrom
naaa760:fix/stand-instr-out
Open

fix: run Node instrumentation when using standalone server#89385
naaa760 wants to merge 1 commit intovercel:canaryfrom
naaa760:fix/stand-instr-out

Conversation

@naaa760
Copy link
Contributor

@naaa760 naaa760 commented Feb 2, 2026

What?

  • Fixes Node.js instrumentation not running in standalone mode.

Why?

  • Standalone server bypasses NextNodeServer.prepareImpl() where instrumentation is registered.

How?

  • Register instrumentation in router-server.ts initialize() for production mode.

Closes NEXT-
fixes: #89377

@nextjs-bot
Copy link
Collaborator

Allow CI Workflow Run

  • approve CI run for commit: 9e7900f

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next.js standalone output does not run Node.js instrumentation code

2 participants