From f2ad43426f0c5de0cff5cd7ecaea28d23cbc5be9 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 27 Nov 2024 21:44:27 +0000 Subject: [PATCH 1/2] fix: default in_app to false --- posthog/exception_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posthog/exception_utils.py b/posthog/exception_utils.py index 17b7630..efc2343 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 From 9cc8a2929cafe1f8d7f5bb9cafa450017d6cab1e Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 27 Nov 2024 21:46:39 +0000 Subject: [PATCH 2/2] bump versions --- CHANGELOG.md | 4 ++++ posthog/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 741010d..7f3999b 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/version.py b/posthog/version.py index 74b62d6..fd1751e 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "3.7.3" +VERSION = "3.7.5" if __name__ == "__main__": print(VERSION, end="") # noqa: T201