Skip to content

fix(server-utils): Resolve the orchestrion ESM hook by path so build tracers follow it - #23687

Draft
andreiborza wants to merge 1 commit into
ab/e2e-nextjs-16-standalonefrom
ab/fix-standalone-orchestrion-hook-tracing
Draft

fix(server-utils): Resolve the orchestrion ESM hook by path so build tracers follow it#23687
andreiborza wants to merge 1 commit into
ab/e2e-nextjs-16-standalonefrom
ab/fix-standalone-orchestrion-hook-tracing

Conversation

@andreiborza

Copy link
Copy Markdown
Member

Stacked on #23679.

What

register.ts now resolves the orchestrion ESM loader hook from its own on-disk location instead of through the @sentry/server-utils/orchestrion/hook self-reference, and the standalone e2e app gains a test asserting the hook reaches the traced output.

Fixes JS-3451.

Why

Module.register() resolves its specifier at runtime, so @vercel/nft never learned the hook was needed and left it out of traced builds. output: 'standalone', Docker and Vercel deploys then lost channel-based instrumentation entirely, and only said so behind debug: true. The new path is a literal, so tracers follow it, and it is computed at runtime so nothing absolute is baked into the build.

…tracers follow it

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 27, 2026

Copy link
Copy Markdown

JS-3451

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.63 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.65 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.56 kB added added
@sentry/browser (incl. Tracing, Replay) 88.11 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.51 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 92.82 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 105.51 kB added added
@sentry/browser (incl. Feedback) 45.79 kB added added
@sentry/browser (incl. sendFeedback) 33.35 kB added added
@sentry/browser (incl. FeedbackAsync) 38.46 kB added added
@sentry/browser (incl. Metrics) 29.51 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.43 kB added added
@sentry/react 30.31 kB added added
@sentry/react (incl. Tracing) 50.84 kB added added
@sentry/vue 35.69 kB added added
@sentry/vue (incl. Tracing) 50.88 kB added added
@sentry/svelte 28.59 kB added added
CDN Bundle 30.36 kB added added
CDN Bundle (incl. Tracing) 49.12 kB added added
CDN Bundle (incl. Logs, Metrics) 32.56 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 51.01 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73 kB added added
CDN Bundle (incl. Tracing, Replay) 86.62 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.52 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.4 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.33 kB added added
CDN Bundle - uncompressed 89.97 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.82 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.26 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.51 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.42 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.32 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.01 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.68 kB added added
@sentry/nextjs (client) 53.41 kB added added
@sentry/sveltekit (client) 49.08 kB added added
@sentry/core/server 65.3 kB added added
@sentry/core/browser 52.37 kB added added
@sentry/node 122.67 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.5 kB added added
@sentry/node - without tracing 87.97 kB added added
@sentry/node - without channel injection 102.05 kB added added
@sentry/aws-serverless 96.15 kB added added
@sentry/cloudflare (withSentry) - minified 199.57 kB added added
@sentry/cloudflare (withSentry) 495.71 kB added added

@mydea

mydea commented Aug 27, 2026

Copy link
Copy Markdown
Member

not sure but this could conflict/overlap with #23685?

@andreiborza

andreiborza commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@mydea yea, I'll wait until yours lands.

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants