AWS X-Ray SDK for MySQL

JSON →
library 3.12.0 ·javascript
verified Jun 5, 2026

Automatically captures trace data from MySQL queries for AWS X-Ray. Current stable version 3.12.0, follows AWS SDK release cadence with minor updates. Key differentiator: wraps the mysql2/mysql Node.js driver to record query information, errors, and response data in X-Ray subsegments under a parent segment. Supports both automatic (cls-hooked) and manual segment management modes. Requires aws-xray-sdk-core as a peer dependency. Ships TypeScript definitions.