diff --git a/CHANGELOG.md b/CHANGELOG.md index 741010d3..7f3999bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.7.5 - 2024-11-27 + +1. Fix a bug where `in_app` was occassionally not present on exception stack frames. + ## 3.7.4 - 2024-11-25 1. Fix bug where this SDK incorrectly sent feature flag events with null values when calling `get_feature_flag_payload`. diff --git a/posthog/exception_utils.py b/posthog/exception_utils.py index 17b7630d..efc23435 100644 --- a/posthog/exception_utils.py +++ b/posthog/exception_utils.py @@ -733,6 +733,7 @@ def set_in_app_in_frames(frames, in_app_exclude, in_app_include, project_root=No # if frame has no abs_path, skip further checks abs_path = frame.get("abs_path") if abs_path is None: + frame["in_app"] = False continue if _is_external_source(abs_path): @@ -743,6 +744,8 @@ def set_in_app_in_frames(frames, in_app_exclude, in_app_include, project_root=No frame["in_app"] = True continue + frame["in_app"] = False + return frames diff --git a/posthog/version.py b/posthog/version.py index 14899e15..fd1751ee 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "3.7.4" +VERSION = "3.7.5" if __name__ == "__main__": print(VERSION, end="") # noqa: T201