Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotrace gevent #546

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading