Skip to content

Commit 82cdcd2

Browse files
chargomeclaude
andcommitted
docs(astro): Restore orchestrion wiring rationale comment lost in merge
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a87c813 commit 82cdcd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/astro/src/integration/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
170170
const isCloudflare = config?.adapter?.name?.startsWith('@astrojs/cloudflare');
171171
const isCloudflareWorkers = isCloudflare && !isCloudflarePages();
172172

173+
// Wire up the orchestrion code transform so instrumented server-side dependencies (e.g.
174+
// `mysql`, `ioredis`) get `diagnostics_channel` publishers injected into the SSR bundle at
175+
// build time, with no manual plugin setup. The plugin opts out internally when
176+
// `buildTimeInstrumentation` is `false`.
173177
// TODO: Cloudflare/workerd needs different wiring — skipped for now.
174178
if (sdkEnabled.server && !isCloudflare) {
175179
updateConfig({

0 commit comments

Comments
 (0)