Skip to content

Commit e1b427d

Browse files
authored
Merge pull request #35 from instana/no_submodules
Snapshot: Don't report submodules
2 parents 5d31cac + f79c238 commit e1b427d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instana/meter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ def collect_modules(self):
196196
m = sys.modules
197197
r = {}
198198
for k in m:
199+
# Don't report submodules (e.g. django.x, django.y, django.z)
200+
if ('.' in k):
201+
continue
199202
if m[k]:
200203
try:
201204
d = m[k].__dict__

0 commit comments

Comments
 (0)