MySQL2
Adds instrumentation for MySQL2. (default)
This integration only works in the Node.js and Bun runtimes.
Import name: Sentry.mysql2Integration
This integration is enabled by default when performance monitoring is enabled. If you'd like to modify your default integrations, read this.
The mysql2Integration
adds instrumentation for the mysql2
library to capture spans using @opentelemetry/instrumentation-mysql2
.
Copied
Sentry.init({
integrations: [Sentry.mysql2Integration()],
});
mysql2
:>= 1.4.2, < 4.0
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").