def apply_modifications_to_frame(self, frames, idx): # Grouping is not stored on the frame if self.key == "group": return for frame in self._slice_to_range(frames, idx): if self.key == "app": set_in_app(frame, self.flag)
def apply_modifications_to_frame(self, frames, match_frames, idx, rule=None): # Grouping is not stored on the frame if self.key == "group": return if self.key == "app": for frame, match_frame in self._slice_to_range(zip(frames, match_frames), idx): set_in_app(frame, self.flag) match_frame["in_app"] = frame["in_app"]
def _normalize_in_app(stacktrace): """ Ensures consistent values of in_app across a stacktrace. """ # Default to false in all cases where processors or grouping enhancers # have not yet set in_app. for frame in stacktrace: if frame.get("in_app") is None: set_in_app(frame, False)
def _normalize_in_app(stacktrace, platform=None, sdk_info=None): """ Ensures consistent values of in_app across a stacktrace. """ has_system_frames = _has_system_frames(stacktrace) for frame in stacktrace: # If all frames are in_app, flip all of them. This is expected by the UI if not has_system_frames: set_in_app(frame, False) # Default to false in all cases where processors or grouping enhancers # have not yet set in_app. elif frame.get("in_app") is None: set_in_app(frame, False)