Skip to content

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

Draft
chargome wants to merge 4 commits into
developfrom
cg/solid-orch
Draft

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

Conversation

@chargome

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

@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.

if (addBuildTimeInstrumentation) {
(rollupConfig as unknown as RollupConfig).plugins.push(
sentryOrchestrionPlugin({ buildTimeInstrumentation: sentryPluginOptions.buildTimeInstrumentation }),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unguarded double type assertion

Low Severity

Flagged because it was mentioned in the PR review rules file: new SDK source uses an as unknown as double-cast with no comment explaining why a safer type isn’t possible. This violates the rule that every new any / as any / as unknown as / non-null assertion needs that justification comment.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 16dd435. Configure here.

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>
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

1 participant