mysql (OpenTelemetry)

Our 2.x integration is deprecated, please upgrade to 3.x. Migration information is available here.

The AppSignal for Node.js integration with OpenTelemetry for MySQL, through the mysql package.

Installation

First follow the OpenTelemetry installation instructions.

In the tracing.js file, add the OpenTelemetry MySQLInstrumentation to the list of instrumentations.

javascript
// tracing.js // The start of the tracing.js file, see the installation instructions // Add the MySQLInstrumentation import const { MySQL2Instrumentation, } = require("@opentelemetry/instrumentation-mysql2"); const sdk = new opentelemetry.NodeSDK({ instrumentations: [ // Other instrumention here // Add the MySQL2Instrumentation new MySQL2Instrumentation(), ], }); // The rest of the tracing.js file, see the installation instructions