test(nuxt): Test mysql instrumentation with orchestrion bundler plugin#21782
Open
s1gr1d wants to merge 8 commits into
Open
test(nuxt): Test mysql instrumentation with orchestrion bundler plugin#21782s1gr1d wants to merge 8 commits into
mysql instrumentation with orchestrion bundler plugin#21782s1gr1d wants to merge 8 commits into
Conversation
mysql instrumentation with orchestrionmysql instrumentation with orchestrion bundler plugin
| return; | ||
| } | ||
|
|
||
| writeFileSync(entryFilePath, topImport + data, 'utf8'); |
timfish
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Nuxt 4 E2E test app that shows how orchestrion (build-time
diagnostics_channelinjection) can be wired into a meta framework, so DB instrumentation works on bundled server code without--import.Rollup plugin instead of Vite. Nuxt's server is built by Nitro (Rollup), so the orchestrion code transform is wired in as a Nitro Rollup plugin, mirroring the existing Vite plugin.
Local module to inject
initto "server entry". Nitro does not expose an explicit server entry to place the Sentry init in. A small local Nuxt module (mirroring@sentry/nuxt'saddSentryTopImport) injects a top-levelimport './sentry.server.config.mjs'into Nitro's built entry, sonode .output/server/index.mjsinitializes Sentry firstBoth instrumentation paths coexist. orchestrion handles the bundled
mysql(auto.db.orchestrion.mysql), while OTel keeps instrumenting everything left external (ioredis,http, …)