MySQL Instrumentation
Installation
The installation instructions differ based on the MySQL adapter package you are using:
mysql
(from themysql-connector-python
package)mysqlclient
pymysql
Using mysql
This feature requires AppSignal for Python version 1.3.2 or higher.
This feature requires mysql-connector-python version 8.0.0 or higher.
When using the mysql-connector-python
MySQL adapter package (which is imported as mysql
), install the opentelemetry-instrumentation-mysql
package. To add it to your project, add the following line to your requirements.txt
file:
Shell
# requirements.txt opentelemetry-instrumentation-mysql
Using mysqlclient
This feature requires AppSignal for Python version 1.3.2 or higher.
When using the mysqlclient
MySQL adapter package, install the opentelemetry-instrumentation-mysqlclient
package. To add it to your project, add the following line to your requirements.txt
file:
Shell
# requirements.txt opentelemetry-instrumentation-mysqlclient
Using pymysql
This feature requires AppSignal for Python version 1.3.2 or higher.
When using the pymysql
MySQL adapter package, install the opentelemetry-instrumentation-pymysql
package. To add it to your project, add the following line to your requirements.txt
file:
Shell
# requirements.txt opentelemetry-instrumentation-pymysql