Skip to content

Commit

Permalink
fix(django): Detect running django based on the injected path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc- committed Jul 14, 2022
1 parent e7f8372 commit 8779ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion instana/instrumentation/django/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def load_middleware_wrapper(wrapped, instance, args, kwargs):
logger.debug("Instrumenting django")
wrapt.wrap_function_wrapper('django.core.handlers.base', 'BaseHandler.load_middleware', load_middleware_wrapper)

if 'INSTANA_MAGIC' in os.environ:
if '/tmp/.instana/python' in sys.path:
# If we are instrumenting via AutoTrace (in an already running process), then the
# WSGI middleware has to be live reloaded.
from django.core.servers.basehttp import get_internal_wsgi_application
Expand Down
2 changes: 1 addition & 1 deletion 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 = '1.37.3'
VERSION = '1.37.4'

0 comments on commit 8779ab9

Please sign in to comment.