Skip to content

fix(tanstackstart-react): Drop server transactions for tunnel route requests#21769

Open
logaretm wants to merge 3 commits into
developfrom
fix/tanstackstart-ignore-tunnel-route-transactions
Open

fix(tanstackstart-react): Drop server transactions for tunnel route requests#21769
logaretm wants to merge 3 commits into
developfrom
fix/tanstackstart-ignore-tunnel-route-transactions

Conversation

@logaretm

@logaretm logaretm commented Jun 24, 2026

Copy link
Copy Markdown
Member

The server SDK was turning every incoming tunnel route request into an http.server transaction. This drops tunnel traffic for both the static and streamed (traceLifecycle: 'stream') span lifecycles.

closes #21555

@logaretm logaretm requested a review from a team as a code owner June 24, 2026 21:27
@logaretm logaretm requested review from chargome, mydea, nicohrubec and s1gr1d and removed request for a team and chargome June 24, 2026 21:27
return {
handlers: {
POST: async ({ request }) => {
const activeSpan = getActiveSpan();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any way to maybe solve this via suppressTracing instead? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The span would be created outside of this callback so it wouldn't work

Comment thread packages/tanstackstart-react/src/vite/tunnelRoute.ts Outdated
Comment thread packages/tanstackstart-react/src/server/sdk.ts Outdated
Comment thread packages/tanstackstart-react/src/vite/tunnelRoute.ts
@logaretm logaretm requested review from Lms24 and nicohrubec June 25, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TanStack Start Tunnel not being ignored by the SDK

3 participants