MySQL

AppSignal for Node.jsThis feature requires version 3.0.0 or higher.
mysqlThis feature requires version 2.0 or higher.
mysql2This feature requires version 1.4.2 or higher.

Default instrumentations can be disabled via the disableDefaultInstrumentations config option. You can read more about how to configure this in our Configuration Options documentation.

The AppSignal for Node.js integration for MySQL, using the mysql and mysql2 packages.

Installation

The MySQL client library is instrumented automatically by the AppSignal for Node.js package. No additional setup is required to instrument MySQL in your application.

Features

The MySQL integration will send AppSignal a child span for each query. The child span represents the duration of the query and contains the SQL query sanitized.

This instrumentation will also work with any library that depends on the mysql or mysql2 packages as its database adapter, such as Knex or TypeORM.