Check if attribute values and return values match the filter condition as well
@@ -70,6 +70,7 @@ class CollectorStorage:
return_value: the value to be stored
"""
entry = self._get_current_exec()
+ if self._filter_condition(('', return_value)):
try:
entry[(EntryTypes.RETURN_VALUE, statement)] = copy.deepcopy(return_value)
except TypeError:
@@ -101,6 +102,7 @@ class CollectorStorage:
):
entry = self._get_current_exec()
for field, value in vars(obj).items():
+ if self._filter_condition((field, value)):
try:
entry[
(
