Compose server source maps and debug IDs across multi-pass builds
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, typescript
- Lĩnh vực
- observability, tooling
Hướng nghiên cứu
Start with packages/core/src/utils/debug-ids.ts and the SvelteKit workaround in packages/sveltekit/src/vite/sourceMaps.ts, then review the linked source-map and framework issues. Map how the bundler plugins expose hooks and CLI commands before scoping the shared finalization step; done means final JavaScript outputs have composed source maps and one debug ID, with runtime collisions diagnosed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Several frameworks run a second bundling or merging step over the output of the step where Sentry injects debug IDs and generates source maps:
- Nitro bundles the Vite SSR output again.
- wrangler and OpenNext bundle the worker.
- SvelteKit adapters merge files.
- TanStack Start and Bun builds have similar steps.
When the source-map chain is not composed through that later step, or several injected debug IDs end up in one output file, server stack traces resolve to intermediate build files or not at all. Issues: #21012, #20084, #20051, #19213, #19396, #25618.
There are framework-specific fixes: SvelteKit flattens with sorcery (packages/sveltekit/src/vite/sourceMaps.ts), #25333 handles Nuxt 5, and #25670 handles Bun. Each framework solves the same problem separately, and the bundler-plugins core has nothing for it.
There are also two failure modes on the runtime side:
- When several
_sentryDebugIdssnippets end up in one file, they all map to the same filename and the last one wins. - Native
_debugIdsoverride Sentry's for the same file (packages/core/src/utils/debug-ids.ts).
Both fail silently.
Proposal
-
A shared, opt-in "finalize output" step in
@sentry/bundler-plugins, exposed as a plugin hook and as a CLI command that can run on a final output directory. For each final.jsfile it should:- follow the
sourceMappingURLchain through the intermediate maps and compose it back to the original sources; - reduce the file to one debug ID (remove duplicate snippets and stamp a single ID);
- then upload.
Framework SDKs (SvelteKit, Nuxt/Nitro, TanStack Start, Cloudflare/wrangler, Bun) would enable it inside their existing plugins and replace their own workarounds. This would build on the zero-config source-map work in #25609.
- follow the
-
Runtime detection. Log a debug warning in
getFilenameToDebugIdMapwhen more than one debug ID resolves to the same filename, so collisions can be diagnosed.
Not fixable on our side, and worth stating in docs: build steps that emit no source map at all (for example OpenNext, opennextjs-cloudflare#1352), and Turbopack maps that leave mangled names out of names (#18248, vercel/next.js#87896).
- Ngôn ngữ chính
- TypeScript
- Star
- 8.8k
- Fork
- 1.9k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 744
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
getsentry/sentry-javascript#26910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Only create Nuxt database and storage spans when there is a parent spanCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởImprovement Nuxt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
getsentry/sentry-javascript#25805 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Only create Cloudflare storage and D1 db spans when there is a parent spanCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởCloudflare Workers Improvement Spans
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-javascript#25804 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Core Feature: Typescript Meta: Breaking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-javascript#25286 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-javascript#24200 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-javascript
Issue tương tự
-
Postgres upgrade golden leaves fixture URL query parameters in the expected output comparisonĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
garrytan/gbrain#10437 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Có thể đã có người làm @acmerfight đã nhận hôm nay. Đang mởuntriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
earendil-works/pi#12573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
agentes-chat/agentes-chat#1506 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
comp/desktop desktop/files os/windows P2 type/perf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NousResearch/hermes-agent#160359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing repro Platform: Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/react-native-reanimated#11554 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày