fix: pass before_send through module-level setup#472
fix: pass before_send through module-level setup#472sipa-echo-zaoa wants to merge 3 commits intoPostHog:masterfrom
Conversation
|
|
Hi @marandaneto, Thanks. |
|
@sipa-echo-zaoa you need to force push your changes with signed commits otherwise we cannot merge this in |
|
also format your code with ruff |
- Keep before_send in sync with the module-level configuration on every setup() call, not just during initial client creation. - This fixes the case where the default client is initialized before posthog.before_send is assigned, causing later events to skip the callback unexpectedly. - Add a regression test covering updates to before_send after client initialization.
50ee83f to
04991a7
Compare
|
@marandaneto I've rebased formatted and force pushed. |
Summary
posthog.before_sendcallback into the lazily initialized default clientposthog.capture(...)uses the callbackHttp404viabefore_sendCloses #450