Releases: PostHog/posthog-python
Releases · PostHog/posthog-python
7.20.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- c359f93 Mask sensitive data held inside objects and in URL/DSN credentials when capturing exception code variables. Custom objects are now traversed so fields like
passwordare redacted by attribute name instead of leaking viarepr(), and credentials embedded in connection strings are scrubbed. Adds thecode_variables_mask_url_credentialsoption (defaultTrue). — Thanks @ablaszkiewicz! - c359f93 Improve strict Pyright coverage for public PostHog APIs. — Thanks @ablaszkiewicz!
7.20.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 09c8fba Warn on duplicate async PostHog clients and document client lifecycle guidance — Thanks @marandaneto!
7.20.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- bc8e531 Add a default timeout for flushing queued events. — Thanks @marandaneto!
7.19.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- 98a305a Increase the default background flush interval to 5 seconds — Thanks @marandaneto!
7.19.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 8d416ae Add missing return type annotations to improve typing coverage without changing runtime behavior. — Thanks @miachillgood for your first contribution 🎉!
7.19.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- b9f3208 Add opt-in client-side rate limiting for exception autocapture, using the same token bucket algorithm as the posthog-js and posthog-node SDKs: a bucket per exception type allows a burst of captures, then refills over time. Rate-limited exceptions are skipped before they reach the ingestion queue. Disabled by default; enable with the new
enable_exception_autocapture_rate_limitingclient option and tune viaexception_autocapture_bucket_size(default 50),exception_autocapture_refill_rate(default 10), andexception_autocapture_refill_interval_seconds(default 10). — Thanks @hpouillot!
7.18.3
Immutable
release. Only release title and notes can be modified.
Patch changes
- ee6a3c8 Warn when an AI wrapper's
base_urlpoints at the PostHog AI Gateway. The gateway emits its own$ai_generation, so each call would be captured (and billed) twice. The wrapper only warns and never drops the event. Detection covers the wrapper funnels (OpenAI, Anthropic, LangChain) and the OTel span path. — Thanks @richardsolomou!
7.18.2
Immutable
release. Only release title and notes can be modified.
Patch changes
- fe76fc9 Improve mypy coverage for core SDK modules without changing runtime behavior. — Thanks @Kshitijmishradev for your first contribution 🎉!
7.18.1
Immutable
release. Only release title and notes can be modified.
Patch changes
- 00b2091 Add internal-only routing of
$ai_*events to a dedicated capture endpoint in their own batch, gated behind the unstable_dedicated_ai_endpointclient option (off by default, not for general use). — Thanks @carlos-marchal-ph!
7.18.0
Immutable
release. Only release title and notes can be modified.
Minor changes
- a2ce51e feat(feature-flags): support the
early_exitcondition option in local evaluation. When a flag enables early exit, evaluation now stops and returnsFalseas soon as a condition group's property filters match but the rollout percentage excludes the user, instead of falling through to later groups — matching the server-side evaluation behavior. — Thanks @gustavohstrassburger!