Skip to content

feat(solidstart): Auto-wire orchestrion build-time instrumentation - #22827

Merged
chargome merged 4 commits into
developfrom
cg/solid-orch
Jul 30, 2026
Merged

feat(solidstart): Auto-wire orchestrion build-time instrumentation#22827
chargome merged 4 commits into
developfrom
cg/solid-orch

Conversation

@chargome

@chargome chargome commented Jul 29, 2026

Copy link
Copy Markdown
Member

withSentry() now adds the orchestrion bundler plugin to the SolidStart/Nitro build automatically, so instrumented DB drivers get diagnostics_channel publishers injected at build time with no manual setup. Follows Nuxt's setupOrchestrion pattern and is gated on the shared buildTimeInstrumentation opt-out.

The externals-inlining is set statically on the returned server config (not in a hook) because externalization must land before Rollup normalizes external.

Closes #22687

chargome and others added 3 commits July 29, 2026 15:27
`withSentry()` now adds the orchestrion bundler plugin to the SolidStart/Nitro
build automatically, gated on the shared `buildTimeInstrumentation` opt-out.
Follows Nuxt's `setupOrchestrion` pattern: push the rollup code transform and
force-inline `INSTRUMENTED_MODULE_NAMES` into Nitro externals.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Extend the solidstart e2e app with mysql/ioredis routes and a Docker-backed
test asserting the `auto.db.orchestrion.*` spans, proving the auto-wiring.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Jul 29, 2026
@chargome

chargome commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

buglinger run

(edited by: @nicohrubec)

@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 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 16dd435. Configure here.

Comment thread packages/solidstart/src/config/withSentry.ts
Hoist the `rollup:before` config cast into one narrowing with a justification
comment, replacing the duplicate double-cast.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chargome
chargome marked this pull request as ready for review July 30, 2026 08:09
@chargome
chargome requested a review from a team as a code owner July 30, 2026 08:09
@chargome
chargome requested review from andreiborza, nicohrubec and s1gr1d and removed request for a team July 30, 2026 08:09
@chargome
chargome merged commit eaaee16 into develop Jul 30, 2026
45 checks passed
@chargome
chargome deleted the cg/solid-orch branch July 30, 2026 10:01
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.

SolidStart: auto-wire orchestrion bundler plugin

2 participants