From 865f0a3eb7aa1983fa88a226de6ece089034a7ce Mon Sep 17 00:00:00 2001 From: Oliver Browne Date: Wed, 2 Jul 2025 22:17:13 +0300 Subject: [PATCH 1/2] default send_feature_flags false --- posthog/args.py | 2 +- posthog/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/args.py b/posthog/args.py index 8b517779..215f194f 100644 --- a/posthog/args.py +++ b/posthog/args.py @@ -22,7 +22,7 @@ class OptionalCaptureArgs(TypedDict): error ID if you capture an exception). groups: Group identifiers to associate with this event (format: {group_type: group_key}) send_feature_flags: Whether to include currently active feature flags in the event properties. - Defaults to True + Defaults to False disable_geoip: Whether to disable GeoIP lookup for this event. Defaults to False. """ diff --git a/posthog/client.py b/posthog/client.py index a3b89c9a..3542cc06 100644 --- a/posthog/client.py +++ b/posthog/client.py @@ -522,7 +522,7 @@ def capture_exception( ): distinct_id = kwargs.get("distinct_id", None) properties = kwargs.get("properties", None) - send_feature_flags = kwargs.get("send_feature_flags", True) + send_feature_flags = kwargs.get("send_feature_flags", False) disable_geoip = kwargs.get("disable_geoip", None) # this function shouldn't ever throw an error, so it logs exceptions instead of raising them. # this is important to ensure we don't unexpectedly re-raise exceptions in the user's code. From 9487f181ea9e12dbc0ff9e71f646aabc3c702226 Mon Sep 17 00:00:00 2001 From: Oliver Browne Date: Wed, 2 Jul 2025 22:18:42 +0300 Subject: [PATCH 2/2] bump version --- CHANGELOG.md | 4 ++++ posthog/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b37aaef0..0aa714b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 6.0.2 - 2025-07-02 + +- fix: send_feature_flags changed to default to false in `Client::capture_exception` + # 6.0.1 - fix: response `$process_person_profile` property when passed to capture diff --git a/posthog/version.py b/posthog/version.py index 6c616acf..54bb7a33 100644 --- a/posthog/version.py +++ b/posthog/version.py @@ -1,4 +1,4 @@ -VERSION = "6.0.1" +VERSION = "6.0.2" if __name__ == "__main__": print(VERSION, end="") # noqa: T201