File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import importlib
2121
2222from .version import VERSION
23+ from instana .collector .helpers .runtime import is_autowrapt_instrumented , is_webhook_instrumented
2324
2425__author__ = 'Instana Inc.'
2526__copyright__ = 'Copyright 2020 Instana Inc.'
@@ -186,7 +187,7 @@ def boot_agent():
186187 else :
187188 # Automatic gevent monkey patching
188189 # unless auto instrumentation is off, then the customer should do manual gevent monkey patching
189- if ("instana" in os . environ . get ( "AUTOWRAPT_BOOTSTRAP" , "" ) and
190+ if (( is_autowrapt_instrumented () or is_webhook_instrumented () ) and
190191 "INSTANA_DISABLE_AUTO_INSTR" not in os .environ and
191192 importlib .util .find_spec ("gevent" )):
192193 apply_gevent_monkey_patch ()
Original file line number Diff line number Diff line change 33
44# Module version file. Used by setup.py and snapshot reporting.
55
6- VERSION = "2.5.0 "
6+ VERSION = "2.5.1 "
You can’t perform that action at this time.
0 commit comments