Repository navigation
Conversation
The module-level client took none of the options an explicit `Posthog` client has for its two capture lanes. `None` keeps the client default. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SDK performance: posthog-pythonBenchmarks completed. No changes flagged for review. Flags require at least a 5% change in the median and all six pairs agreeing on direction. This is a noise filter, not proof of a performance change or a CI gate. View all results
Values are medians of paired measurements. Not flagged does not mean unchanged. Unavailable means a measurement could not be provided, not zero. Estimated allocation measurements retain their instrumentation uncertainty. RSS measures the whole process, not just SDK allocations; observed peaks are sampled checkpoints. Paired ranges in the diagnostics describe variability, not confidence intervals. Each shard uses its own runner; compare Before PR against With PR within a row, not across shards. Compared 102 metric rows; 102 rows shown in all results. Omitted or shortened data remain in |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
PR overviewNo security issues were found in this pull request. Reviews
|
Public API change: five new module-level settings.
💡 Motivation and Context
An explicit
Posthogclient can size and tune its analytics and AI capture lanes. The global client used byposthog.capture()cannot:setup()passes none of those options, so an app on the module API gets the defaults and cannot change them.posthog.max_queue_size,max_retries,timeout,capture_ai_max_queue_sizeandcapture_ai_timeout.None, the default, keeps the client's own default, so nothing changes for current users.setup()reads them once, when it builds the global client, like the other construction-time settings.Open question for reviewers: the module docstring calls the global client legacy. If new settings should not land there, the alternative is to document building
posthog.default_clientby hand.💚 How did you test it?
setup()drops any one of them.Posthog(...)with defaults.📝 Checklist
If releasing new changes
sampo addto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Claude Code (Claude Fable 5.2) wrote the change.
flush_at,flush_intervaland the compression options were left out to keep the new surface small; they can follow the same way. Retry delay is not a client option yet, so it is not here either.🤖 Generated with Claude Code