Skip to content

Commit

Permalink
fix: Ensure apply_gevent_monkey_patch when webhook is active
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed Jun 28, 2024
1 parent 8eec93f commit 9748ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/instana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import importlib

from .version import VERSION
from instana.collector.helpers.runtime import is_autowrapt_instrumented, is_webhook_instrumented

__author__ = 'Instana Inc.'
__copyright__ = 'Copyright 2020 Instana Inc.'
Expand Down Expand Up @@ -186,7 +187,7 @@ def boot_agent():
else:
# Automatic gevent monkey patching
# unless auto instrumentation is off, then the customer should do manual gevent monkey patching
if ("instana" in os.environ.get("AUTOWRAPT_BOOTSTRAP", "") and
if ((is_autowrapt_instrumented() or is_webhook_instrumented()) and
"INSTANA_DISABLE_AUTO_INSTR" not in os.environ and
importlib.util.find_spec("gevent")):
apply_gevent_monkey_patch()
Expand Down
2 changes: 1 addition & 1 deletion src/instana/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

# Module version file. Used by setup.py and snapshot reporting.

VERSION = "2.5.0"
VERSION = "2.5.1"

0 comments on commit 9748ef2

Please sign in to comment.