Skip to content

Commit 761076a

Browse files
Fix doc
1 parent 0987233 commit 761076a

File tree

1 file changed

+3
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
4646
.. code:: python
4747
48-
import MySQLdb
48+
import pymysql
4949
from opentelemetry.instrumentation.pymysql import PyMySQLInstrumentor
5050
5151
PyMySQLInstrumentor().instrument(enable_commenter=True, commenter_options={})
5252
53-
cnx = MySQLdb.connect(database="MySQL_Database")
53+
cnx = pymysql.connect(database="MySQL_Database")
5454
cursor = cnx.cursor()
5555
cursor.execute("INSERT INTO test (testField) VALUES (123)"
5656
cnx.commit()
@@ -73,7 +73,7 @@
7373
7474
For example,
7575
::
76-
Enabling this flag will add MySQLdb and its version, e.g. /*MySQLdb%%3A1.2.3*/
76+
Enabling this flag will add pymysql and its version, e.g. /*pymysql%%3A1.2.3*/
7777
7878
dbapi_threadsafety = True(Default) or False
7979

0 commit comments

Comments
 (0)