Uh oh!
There was an error while loading. Please reload this page.
feat(tanstackstart-react): Add distributed tracing - #21144
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| } catch (e) { | ||
| captureException(e, { | ||
| mechanism: { type: 'auto.http.tanstackstart', handled: false }, |
There was a problem hiding this comment.
Maybe you could also test that those exceptions are correctly captured.
Uh oh!
There was an error while loading. Please reload this page.
…tion Adds distributed tracing to the TanStack Start SDK by injecting `sentry-trace` and `baggage` meta tags into HTML responses in `wrapFetchWithSentry`, connecting server and client traces automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restore bodyIterator generator for stream error reporting, captureException in outer catch, TS narrowing reassignment, and comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closing an already-errored ReadableStream controller throws TypeError. Track error state and skip close() in that case. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
796ae00 to
53a6c2bCompareThere was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 53a6c2b. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.

Adds distributed tracing to the TanStack Start SDK by injecting
sentry-traceandbaggagemeta tags into HTML responses inwrapFetchWithSentry. This connects server and client traces automatically without requiring any additional user setup.The added functions that do the meta tag injections are essentially copies from the astro package (addMetaTagToHead, injectMetaTagsInResponse).
Added a
trace-propagationtest to the main TSS e2e test application and adjusted the existing cloudflare TSS e2e test application to the new pattern (i.e. remove the manual injection of meta tags).Example trace with my local sample app:

Closes#18286