Repository navigation
Conversation
Contributor
posthog-python Compliance ReportDate: 2026-10-06T19:08:26.100214+00:00 ✅ All Tests Passed!121/121 tests passed Capture_V1 Tests✅ 95/95 tests passed View Details
Capture_Ai Tests✅ 5/5 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
Feature_Flags_Local_Evaluation Tests✅ 4/4 tests passed View Details
|
3 of 5 tasks
eli-r-ph
marked this pull request as ready for review
October 7, 2026 20:43
This was referenced Oct 7, 2026
eli-r-ph
marked this pull request as draft
October 8, 2026 19:40
Contributor
Author
|
Putting this back in draft for safety as per the other SDK |
3 of 5 tasks
4 of 5 tasks
…nts (#1017) feat!: send capture through v1 by default; capture_ai posts to /i/v1/ai/events Capture v1 is now the default capture mode. The AI lane always posts capture v1 to /i/v1/ai/events, uncompressed, regardless of the analytics capture_mode. Tests move to a shared capture v1 send seam (posthog/test/capture_helpers.py); v0-only tests are pinned to CaptureMode.V0 until v0 removal.
Capture v1 is the only capture path. Remove CaptureMode, the capture_mode kwarg and POSTHOG_CAPTURE_MODE, the gzip kwarg, request.batch_post and the v0 endpoint constants, and the backoff dependency. Client and AsyncPosthog constructors are keyword-only after host.
Rename CaptureV1Error to CaptureError and export it from posthog. Event shaping moves to posthog.capture_event and transport to posthog.capture_send. No behavior change.
…1020) * feat!: report capture v1 results through CaptureError and on_error * test: cover _uuid7 layout for the mutation gate * fix: re-raise sync capture failures in debug mode after reporting them Also document which events verdict_summary() counts.
* feat: AI lane config and size-aware batching * chore: tighten AI lane comments * fix: reject non-finite AI lane config values
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
Long-lived integration branch for posthog 8.0: capture v1 becomes the only capture path, and
capture_aimoves to an isolated v1 lane at/i/v1/ai/events. Feature PRs targetv1; this PR merges tomainonce the series lands. Do not merge.The
majorchangeset bumps the next release from 7.64.1 to 8.0.0.Series, stacked in merge order (each PR's base is the one before it, the first targets
v1):capture_aito/i/v1/ai/eventson a lane-aware v1 submitterhostcapture_v1module andCaptureV1ErrortoCaptureErrorsuper_options, context options, layer order and personless as an optioncapture_v1,capture_ai_v1,event_options), once per codeccapture_aiAsyncPosthogAI lane parity$libcomes only fromPostHog-Sdk-InfoRelated parity PRs: PostHog/posthog-go#359, PostHog/posthog-rs#279
mainis merged intov1periodically (no rebase, so open PRs keep their anchors).💚 How did you test it?
Changeset only. Each series PR carries its own tests.
📝 Checklist
If releasing new changes
sampo addto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Authored with Cursor (Claude Opus). Behavior follows the
v1branches of posthog-rs and posthog-go, adapted to this SDK's style.