You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-mysqlclient/src/opentelemetry/instrumentation/mysqlclient/__init__.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,12 @@
26
26
import MySQLdb
27
27
from opentelemetry.instrumentation.mysqlclient import MySQLClientInstrumentor
28
28
29
-
30
29
MySQLClientInstrumentor().instrument()
31
30
32
31
cnx = MySQLdb.connect(database="MySQL_Database")
33
32
cursor = cnx.cursor()
34
-
cursor.execute("INSERT INTO test (testField) VALUES (123)"
33
+
cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
34
+
cursor.execute("INSERT INTO test (testField) VALUES (123)")
35
35
cnx.commit()
36
36
cursor.close()
37
37
cnx.close()
@@ -52,7 +52,7 @@
52
52
cnx = MySQLdb.connect(database="MySQL_Database")
53
53
cursor = cnx.cursor()
54
54
cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
55
-
cursor.execute("INSERT INTO test (testField) VALUES (123)"
55
+
cursor.execute("INSERT INTO test (testField) VALUES (123)")
56
56
cnx.commit()
57
57
cursor.close()
58
58
cnx.close()
@@ -75,7 +75,7 @@
75
75
)
76
76
cursor = instrumented_cnx.cursor()
77
77
cursor.execute("CREATE TABLE IF NOT EXISTS test (testField INTEGER)")
78
-
cursor.execute("INSERT INTO test (testField) VALUES (123)"
78
+
cursor.execute("INSERT INTO test (testField) VALUES (123)")
0 commit comments