fix(mariadb): support connector 3.5.1 and newer #9509
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 371 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9509"
general
weight: 0.35
crysmags
What does this PR do?
Adds tracing support for MariaDB Connector/Node.js 3.5.1 and newer across both module formats:
patchDefaultto the ESM rangeconnectionevents while keeping pool internals in the skip contextMotivation
MariaDB 3.5.1 changed the connector to a pure ESM package, so the existing CommonJS module hooks no longer reached its internals. MariaDB 3.5.3 restored CommonJS through conditional exports, but those entries are minified single-file bundles whose Query, Execute, Stream, Pool, and Cluster classes never pass through the module loader.
The 3.5.3+ CommonJS path therefore instruments public runtime objects. Because MariaDB queues transaction helpers behind any active command, the bundle adapter tracks one count per owning public connection rather than maintaining transaction-specific state. Prepared statements retain their owning connection, and stream wrappers observe terminal events without replacing or consuming the Readable.
Default-export unwrapping also previously occurred before checking the internal filename. Restricting it to matched file/version hooks prevents unrelated namespace exports from being mutated.
Verification
3.5.3andlatestshards on Node.js 18npm run lintnpm run verify:supported-integrationsgit diff --check