Skip to content

test(solid): Check sentryVitePlugin with the Solid 2 server build - #26789

Draft
chargome wants to merge 2 commits into
developfrom
test/solid-2-sentry-vite-plugin
Draft

chargome wants to merge 2 commits into
developfrom
test/solid-2-sentry-vite-plugin

Conversation

@chargome

Copy link
Copy Markdown
Member

What

The solid-2-ssr e2e app uses sentryVitePlugin from @sentry/node/vite, and a server function runs a graphql query. A new test checks that the query gets a graphql span in the server function's trace, on Node and on Workers.

Why

There is no Solid-specific Vite plugin: sentryVitePlugin covers source maps and orchestrion for Solid 2. This checks that orchestrion instruments a dependency bundled into Solid's server build, so the docs can point Solid 2 users to it.

Refs JS-4119

sentryVitePlugin from @sentry/node/vite covers what a Solid-specific Vite
plugin would do. The solid-2-ssr app now uses it, and a server function runs
a graphql query, so CI checks that orchestrion instruments a dependency
bundled into Solid's server build, on Node and on Workers.

Refs JS-4119
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chargome chargome self-assigned this Nov 24, 2026
@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

JS-4119

@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 1 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E solid-2-ssr (cloudflare) Test (optional) Successful in 37s Details

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: cd3da0d (PR test merge using develop at 84df128)

Against: 84df128 (develop) · base run #67650

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.54 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.6 kB - -
@sentry/browser (incl. Tracing) 53.67 kB - -
@sentry/browser (incl. Tracing Core) 40.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.67 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.57 kB - -
@sentry/browser (incl. Tracing, Replay) 93.54 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.41 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.93 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.45 kB - -
@sentry/browser (incl. Feedback) 48.49 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.17 kB - -
@sentry/browser (incl. Metrics) 31.86 kB - -
@sentry/browser (incl. Logs) 32.13 kB - -
@sentry/browser (incl. Metrics & Logs) 32.8 kB - -
@sentry/react 32.56 kB - -
@sentry/react (incl. Tracing) 56.38 kB - -
@sentry/vue 38.75 kB - -
@sentry/vue (incl. Tracing) 56.68 kB - -
@sentry/svelte 30.57 kB - -
@sentry/effect (client) 42.25 kB - -
@sentry/effect (client, incl. Tracing) 49.41 kB - -
@sentry/effect (client, incl. Tracing, Logs, Metrics) 59.3 kB - -
@sentry/remix (Remix 3 client bundle) 59.39 kB - -
CDN Bundle 32.54 kB - -
CDN Bundle (incl. Tracing) 54.15 kB - -
CDN Bundle (incl. Logs, Metrics) 35.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.63 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.16 kB - -
CDN Bundle (incl. Tracing, Replay) 91.89 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.43 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.81 kB - -
CDN Bundle - uncompressed 94.92 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.25 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.5 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.54 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.17 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300.09 kB - -
@sentry/nextjs (client) 60.09 kB - -
@sentry/sveltekit (client) 55.03 kB - -
@sentry/core/server 45.86 kB - -
@sentry/core/browser 14.46 kB - -
@sentry/node 156.27 kB +0.01% +3 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.22 kB -0.01% -3 B 🔽
@sentry/node - without channel injection 145.2 kB +0.01% +1 B 🔺
@sentry/aws-serverless 99.86 kB -0.01% -3 B 🔽
@sentry/cloudflare (withSentry) - minified 210.31 kB - -
@sentry/cloudflare (withSentry) 488.28 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 213.25 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 235.54 kB - -

View base workflow run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 35d5162. Configure here.

'solid-2-ssr',
span => getSpanOp(span) === HTTP_SERVER && span.is_segment && span.trace_id === graphqlSpan.trace_id,
0,
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Server span wait matches document request

Medium Severity

The http.server wait matches any segment in the GraphQL span's trace from timestamp 0, not the server-function request itself. On Node the pageload continues GET /, and the button's fetch continues that same trace, so the first matching segment is the document request from page.goto rather than the POST. E2E waits on a shared route need to isolate by request identity (for example url.path or method), otherwise the first name/op match can pick the wrong span.

Fix in Cursor Fix in Web

Triggered by learned rule: Hono E2E isolate shared-route traces

Reviewed by Cursor Bugbot for commit 35d5162. Configure here.

…race

The server function request continues the pageload's trace, like the page
request, so the trace alone also matched GET /.

Refs JS-4119
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant