Skip to content

Commit 28775c2

Browse files
committed
Add debug msg to django19 instrumentation
1 parent 2ff382a commit 28775c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

instana/django19.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import opentracing as ot
33
from instana import tracer, options
44
import opentracing.ext.tags as ext
5+
import os
56

67

78
DJ19_INSTANA_MIDDLEWARE = 'instana.django19.InstanaMiddleware19'
@@ -46,6 +47,12 @@ def process_response(self, request, response):
4647

4748
def hook(module):
4849
""" Hook method to install the Instana middleware into Django """
50+
if "INSTANA_DEV" in os.environ:
51+
print("==============================================================")
52+
print("Instana: Running django19 hook")
53+
print("==============================================================")
54+
55+
4956
if DJ19_INSTANA_MIDDLEWARE in module.settings.MIDDLEWARE_CLASSES:
5057
return
5158

0 commit comments

Comments
 (0)