Skip to content

test(e2e): Add E2E test app for orchestrion instrumentations on TanStack Start#22020

Merged
nicohrubec merged 1 commit into
developfrom
test/tanstackstart-orchestrion-e2e
Jul 8, 2026
Merged

test(e2e): Add E2E test app for orchestrion instrumentations on TanStack Start#22020
nicohrubec merged 1 commit into
developfrom
test/tanstackstart-orchestrion-e2e

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 7, 2026

Copy link
Copy Markdown
Member

Adds an E2E test app for orchestrion (diagnostics-channel) instrumentations on TanStack Start, covering mysql and ioredis.

Setting up orchestrion on TanStack Start:

  1. Add the Sentry orchestrion Vite plugin (sentryOrchestrionPlugin() from @sentry/server-utils/orchestrion/vite) alongside sentryTanstackStart(). It runs the build-time code transform that injects the diagnostics_channel calls into the instrumented deps and force-bundles them.
  2. Call Sentry.experimentalUseDiagnosticsChannelInjection() before Sentry.init() in the server instrument file so the SDK subscribes to those channels.
  3. No node --import required — the Sentry server init is injected into the built Nitro server entry so it runs at boot (before the first request).

Currently this adds a short add-instrumentation.mjs script that prepends the Sentry server init to the built Nitro server entry. This step should be done in one of the Sentry Vite plugins, will improve this in a follow-up.

Closes #21995

@linear-code

linear-code Bot commented Jul 7, 2026

Copy link
Copy Markdown

JS-2938

…ack Start

Inits Sentry via the Nitro server entry (no `node --import`) so it works on
platforms where `--import` isn't available (e.g. Vercel, Netlify).

Fixes JS-2938

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the test/tanstackstart-orchestrion-e2e branch from af5816b to 8698306 Compare July 7, 2026 14:44
@nicohrubec nicohrubec marked this pull request as ready for review July 8, 2026 06:52
@nicohrubec nicohrubec requested review from a team, chargome, mydea and s1gr1d and removed request for a team July 8, 2026 07:05
@nicohrubec nicohrubec merged commit d660843 into develop Jul 8, 2026
47 checks passed
@nicohrubec nicohrubec deleted the test/tanstackstart-orchestrion-e2e branch July 8, 2026 07:46
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.

Add E2E test app for orchestrion instrumentations on TanStack Start (React)

2 participants