Skip to content

Commit 473477d

Browse files
authored
webapp2: Check Py version before instrumenting (#197)
1 parent 6c978c1 commit 473477d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

instana/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ def boot_agent():
6262
from .instrumentation import asynqp
6363

6464
if sys.version_info[0] < 3:
65-
# MySQL-python
6665
from .instrumentation import mysqlpython
66+
from .instrumentation import webapp2_inst
6767
else:
68-
# mysqlclient
6968
from .instrumentation import mysqlclient
7069

7170
from .instrumentation import flask
@@ -79,7 +78,6 @@ def boot_agent():
7978
from .instrumentation import sqlalchemy
8079
from .instrumentation import sudsjurko
8180
from .instrumentation import urllib3
82-
from .instrumentation import webapp2_inst
8381
from .instrumentation.django import middleware
8482

8583

0 commit comments

Comments
 (0)