Skip to content

Track the classic mysql driver - #16

Merged
thelastbackspace merged 1 commit into
mainfrom
feat/mysql
Nov 6, 2026
Merged

thelastbackspace merged 1 commit into
mainfrom
feat/mysql

Conversation

@thelastbackspace

Copy link
Copy Markdown
Owner

instrumentMysql(tp, require('mysql')), auto-detected from the app's dependencies. Found while testing a NestJS + TypeORM app whose config uses mysql, which wasn't covered (only mysql2).

  • connections: Connection.prototype.query (the class isn't exported; reached through an unconnected connection)
  • pools: pool.query is tracked itself, so waiting for a free connection and failing to get one are included; the Query it hands to a connection is marked so it isn't counted twice (the hand-off is always asynchronous: a ping or a new connection)
  • tested against the real driver's failure paths, like mysql2 (no server needed)

@thelastbackspace
thelastbackspace merged commit 12f4c90 into main Nov 6, 2026
14 checks passed
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.

1 participant