Overview
Right now only the Next.js SDK has a built-in tunnel handler on the backend side, but this PR aims to extract the tunnel handling logic in plain JavaScript in @sentry/core, and provide framework-specific adapters.
Framework-specific adapters checklist
Questions for the team
- Is
@sentry/core a good home for the framework-agnostic tunnel handler function?
- What framework-specific adapters am I missing in the checklist? (cloudflare, aws, google cloud services, vercel edge, bun, deno)
- How do we standardize this across all SDKs, not just JavaScript?
TODOs
Update
After talking to the team, we decided to scope this PR only to the core util function, and handle framework adapters in other PRs. For that reason, I've deleted the initial TanStack Start adapter.